Merge pull request #106164 from lodetrick/refactor-bottom-panel

Refactor editor `EditorBottomPanel` to be a `TabContainer`
This commit is contained in:
Thaddeus Crews 2025-11-07 10:32:35 -06:00
commit 522fa8d9bc
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC
18 changed files with 272 additions and 358 deletions

View file

@ -921,7 +921,7 @@ ShaderEditorPlugin::ShaderEditorPlugin() {
empty.instantiate();
shader_tabs->add_theme_style_override(SceneStringName(panel), empty);
button = EditorNode::get_bottom_panel()->add_item(TTRC("Shader Editor"), window_wrapper, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_shader_editor_bottom_panel", TTRC("Toggle Shader Editor Bottom Panel"), KeyModifierMask::ALT | Key::S));
EditorNode::get_bottom_panel()->add_item(TTRC("Shader Editor"), window_wrapper, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_shader_editor_bottom_panel", TTRC("Toggle Shader Editor Bottom Panel"), KeyModifierMask::ALT | Key::S));
shader_create_dialog = memnew(ShaderCreateDialog);
files_split->add_child(shader_create_dialog);

View file

@ -88,7 +88,6 @@ class ShaderEditorPlugin : public EditorPlugin {
TabContainer *shader_tabs = nullptr;
HBoxContainer *empty_menu = nullptr;
Button *button = nullptr;
MenuButton *file_menu = nullptr;
PopupMenu *context_menu = nullptr;