1
0
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:
Pāvels Nadtočajevs
2025-12-09 14:07:23 +02:00
parent 1ea6b0ccff
commit 89324bc6d2
3 changed files with 364 additions and 257 deletions

View File

@@ -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);