Update editor scripts

This commit is contained in:
Insality
2025-04-19 18:03:50 +03:00
parent 8d2b8c25a0
commit 50e59d9469
19 changed files with 1118 additions and 280 deletions

View File

@@ -168,3 +168,16 @@ function init(self)
end
```
## Create Druid Widget Editor Script
Druid provides an editor script to assist you in creating Lua files for your GUI scenes. You can find the commands under the menu `Edit -> Create Druid Widget` when working with *.gui scenes.
This script will create a new widget lua file with the same name and basic template for the widget.
The Druid provides two templates:
- `/druid/templates/widget.lua.template` - Basic template for the widget.
- `/druid/templates/widget_full.lua.template` - Full template for the widget.
You can change the path to the template in the `[Druid] Settings` option in the `Edit` menu.