新增插件指引网页
This commit is contained in:
@@ -2,12 +2,44 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Optional
|
||||
from typing import Optional, Sequence
|
||||
|
||||
from Plugins.WPSAPI import GuideEntry
|
||||
from .garden_plugin_base import WPSGardenBase
|
||||
|
||||
|
||||
class WPSGardenRemove(WPSGardenBase):
|
||||
def get_guide_subtitle(self) -> str:
|
||||
return "清理地块以重新种植"
|
||||
|
||||
def collect_command_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
GuideEntry(
|
||||
title="铲除",
|
||||
identifier="铲除 <地块序号>",
|
||||
description="清空指定地块,移除作物与成熟计时。",
|
||||
metadata={"别名": "remove"},
|
||||
icon="🧹",
|
||||
details=[
|
||||
{
|
||||
"type": "list",
|
||||
"items": [
|
||||
"常用于处理枯萎或不再需要的作物。",
|
||||
"操作不可逆,被铲除的作物不会返还种子。",
|
||||
],
|
||||
}
|
||||
],
|
||||
),
|
||||
)
|
||||
|
||||
def collect_guide_entries(self) -> Sequence[GuideEntry]:
|
||||
return (
|
||||
{
|
||||
"title": "使用场景",
|
||||
"description": "用于清理枯萎或不再需要的作物,释放地块。",
|
||||
},
|
||||
)
|
||||
|
||||
def wake_up(self) -> None:
|
||||
super().wake_up()
|
||||
self.register_plugin("remove")
|
||||
|
||||
Reference in New Issue
Block a user