Use FlowContainer to handle toolbar overflow more gracefully

This commit is contained in:
Yuri Sizov
2022-07-20 04:00:25 +03:00
parent 5777ec590b
commit dcd64799ef
4 changed files with 89 additions and 80 deletions

View File

@@ -664,11 +664,10 @@ private:
void _menu_gizmo_toggled(int p_option);
void _update_camera_override_button(bool p_game_running);
void _update_camera_override_viewport(Object *p_viewport);
HBoxContainer *hbc_menu = nullptr;
// Used for secondary menu items which are displayed depending on the currently selected node
// (such as MeshInstance's "Mesh" menu).
PanelContainer *context_menu_container = nullptr;
HBoxContainer *hbc_context_menu = nullptr;
PanelContainer *context_menu_panel = nullptr;
HBoxContainer *context_menu_hbox = nullptr;
void _generate_selection_boxes();
UndoRedo *undo_redo = nullptr;