mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Refactor Bottom Panel to be a TabContainer
This commit is contained in:
parent
250ef8dc32
commit
e2caff9a06
18 changed files with 272 additions and 358 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue