1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-02 16:48:55 +00:00

Refactor Bottom Panel to be a TabContainer

This commit is contained in:
Logan Detrick
2025-07-07 17:09:23 -07:00
parent 250ef8dc32
commit e2caff9a06
18 changed files with 272 additions and 358 deletions

View File

@@ -276,7 +276,7 @@ void VersionControlEditorPlugin::_commit() {
EditorVCSInterface::get_singleton()->commit(msg);
version_control_dock_button->set_pressed(false);
EditorNode::get_bottom_panel()->make_item_visible(version_control_dock, false);
commit_message->release_focus();
commit_button->release_focus();
@@ -488,7 +488,7 @@ void VersionControlEditorPlugin::_move_all(Object *p_tree) {
void VersionControlEditorPlugin::_load_diff(Object *p_tree) {
CHECK_PLUGIN_INITIALIZED();
version_control_dock_button->set_pressed(true);
EditorNode::get_bottom_panel()->make_item_visible(version_control_dock, true, true);
Tree *tree = Object::cast_to<Tree>(p_tree);
if (tree == staged_files) {
@@ -910,7 +910,7 @@ void VersionControlEditorPlugin::fetch_available_vcs_plugin_names() {
void VersionControlEditorPlugin::register_editor() {
EditorDockManager::get_singleton()->add_dock(version_commit_dock);
version_control_dock_button = EditorNode::get_bottom_panel()->add_item(TTRC("Version Control"), version_control_dock, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_version_control_bottom_panel", TTRC("Toggle Version Control Bottom Panel")));
EditorNode::get_bottom_panel()->add_item(TTRC("Version Control"), version_control_dock, ED_SHORTCUT_AND_COMMAND("bottom_panels/toggle_version_control_bottom_panel", TTRC("Toggle Version Control Bottom Panel")));
_set_vcs_ui_state(true);
}