mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 15:49:48 +00:00
* M11: a widget opens its plugin's panel (plugin API 5) Gap 6: a widget callback's ui_show opens the plugin's panel and keeps the module loaded; the panel's callbacks get the widget's id and state and redraw it in the same undo step. Older plugins' ui_show from a widget still opens nothing. The Counter example sets its count from a panel. * M11: open_panel takes its opener as one value
11 lines
415 B
JSON
11 lines
415 B
JSON
{
|
||
"id": "org.figcraft.examples.counter",
|
||
"name": "Counter",
|
||
"version": "1.2.0",
|
||
"description": "A widget that counts on the canvas: click its + and − buttons, double-click its label to edit it, and use its menu to reset it, set it in a panel, count in tens or colour it. Everything is kept in the document.",
|
||
"main": "counter.wasm",
|
||
"api": 5,
|
||
"widget": true,
|
||
"permissions": { "access": "read" }
|
||
}
|