MenuButton Populator's icon

MenuButton Populator 1.1 Scripts 4.2 Community

Submitted by user Toorah; GPLv3; 2023-12-29

Adds a quick method to populate a MenuButton with Items.

By adding the custom PopupChild Node as a child of the MenuButtonPopulator Node (inherits MenuButton), you can quickly add items, in the order of the children in the Scene Tree.

You can also add a PopupMenu Node as a child of the MenuButtonPopulator and add more PopupChild nodes to it, to create submenus. Currently this only supports the first layer of submenus, no recursion.

Optionally, you can also use the Signal onPopupItemSelected() found on each PopupChild node, instead of having to create a function and filter the ids manually.


View files Download Submit an issue Recent Edits