You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.
The documentation plugin provides a generic mechanism for plugins to register one or more Markdown documentation pages.
It would be nice to be able to call up the related documentation page for the current editor or tool by pressing F1 (or later, clicking some button).
Expose a setupHelpCallback(callback: Function); method to SupClient that simply stores the callback for later use and should be called by each editor or tool on startup
Bind the F1 in SupClient.setupHotkeys to check if a help callback was provided, and if so, call it
Add a window.addEventListener("message", ...); handler to the documentation editor, similar to
The
documentation
plugin provides a generic mechanism for plugins to register one or more Markdown documentation pages.It would be nice to be able to call up the related documentation page for the current editor or tool by pressing F1 (or later, clicking some button).
setupHelpCallback(callback: Function);
method toSupClient
that simply stores the callback for later use and should be called by each editor or tool on startupF1
inSupClient.setupHotkeys
to check if a help callback was provided, and if so, call itwindow.addEventListener("message", ...);
handler to the documentation editor, similar tosuperpowers-game/plugins/default/typescript/editors/search/ui.ts
Line 27 in 2f0a995
SupClient.setupHelpCallback
to open the documentation tool at the correct page usingwindow.parent.postMessage
similar to https://github.com/superpowers/superpowers-game/blob/master/plugins/default/typescript/editors/script/ui.ts#L505The text was updated successfully, but these errors were encountered: