You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Reorganize editor menu setup, allow switching global menu without restart.
This commit is contained in:
@@ -710,6 +710,20 @@ private:
|
||||
|
||||
bool _is_project_data_missing();
|
||||
|
||||
enum MenuType {
|
||||
MENU_TYPE_NONE,
|
||||
MENU_TYPE_GLOBAL,
|
||||
MENU_TYPE_COMPACT,
|
||||
MENU_TYPE_FULL,
|
||||
};
|
||||
MenuType menu_type = MENU_TYPE_NONE;
|
||||
Vector<PopupMenu *> main_menu_items;
|
||||
|
||||
void _build_file_menu();
|
||||
void _build_project_menu();
|
||||
void _build_settings_menu();
|
||||
void _build_help_menu();
|
||||
|
||||
void _update_main_menu_type();
|
||||
void _add_to_main_menu(const String &p_name, PopupMenu *p_menu);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user