Tree menu addon for godot.
- GDScript 95.4%
- GAP 4.6%
Godot menu addon
An addon that provides a configurable gui popup menu, with nested menus, and an easily serializable path-like data format:
{
"video/fullscreen": false,
"debug/debug_on_start": true
}
Screenshot of example usage in a game
The data of the menu has the following format:
"": {
"buttons": ["button"],
"submenus": ["submenu1", "submenu2"],
"options": {
"slider": {
"type": "slider",
"value": 0,
"min_value": 0,
"max_value": 100,
"step": 1
},
"checkbutton": {
"type": "checkbutt",
"value": false
}
},
"hidden": [],
},
"submenu1": {
"buttons": ["some_button"],
"submenus": [],
"options": {},
"hidden": [],
}
}
The top-most key in the dictionary determines the path of the menu. Under each menu, there are the following required keys:
buttons: a list of button namessubmenus: a list of submenu names that are accessible from this menuoptions: a dictionary of options that can be changedhidden: a list of item names that will be hidden in the menu
The translation key for each item is its string identifier in uppercase prefixed by "MENU_". So for translating the button "some_button" under "submenu1", you use the key MENU_SOME_BUTTON.