wolfhece._builtin_plugins._template.companion

Template companion plugin.

Replace every occurrence of MyPlugin / my_plugin with your own name, then implement the methods below.

Rename this directory to match the name field in plugin.toml (removing the leading _ so it is auto-discovered).

Module Contents

wolfhece._builtin_plugins._template.companion._WXK_ESCAPE = 27[source]
class wolfhece._builtin_plugins._template.companion.MyPluginCompanion(viewer: wolfhece.PyDraw.WolfMapViewer, dialogs: wolfhece.dialog_provider.DialogProvider | None = None, namespace: str | None = None)[source]

Bases: wolfhece._menu_companion_abc.AbstractCompanion

Inheritance diagram of wolfhece._builtin_plugins._template.companion.MyPluginCompanion

Minimal template — replace with your implementation.

menu_build() None[source]

Add a top-level menu entry. Remove if no menu is needed.

start() None[source]

Called when the companion is activated programmatically.

_on_run(event) None[source]
_rdown(viewer, ctx: wolfhece._viewer_plugin_handlers.MouseContext) None[source]
_key(viewer, kb: wolfhece._viewer_plugin_handlers.KeyboardSnapshot) bool[source]
_paint(viewer) None[source]