diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-26 13:45:42 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-03-26 13:45:42 +0100 |
commit | aed1775cf2c8b5ce46540acd3e0e07d9f0e3369d (patch) | |
tree | 0ec545694db5671d37582d1896ad764e6c5c4cc3 | |
parent | 60d37f1d49c8d6b96f0e81b1859b4e7b53fa7645 (diff) | |
parent | 8cfded59343a17529f7f4573018dbf586ab8612b (diff) | |
download | redot-engine-aed1775cf2c8b5ce46540acd3e0e07d9f0e3369d.tar.gz |
Merge pull request #89883 from timothyqiu/replication-pin
Improve replication editor's pin button
-rw-r--r-- | modules/multiplayer/editor/multiplayer_editor_plugin.cpp | 2 | ||||
-rw-r--r-- | modules/multiplayer/editor/replication_editor.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp index 599926ec99..29ebc38edf 100644 --- a/modules/multiplayer/editor/multiplayer_editor_plugin.cpp +++ b/modules/multiplayer/editor/multiplayer_editor_plugin.cpp @@ -149,7 +149,7 @@ void MultiplayerEditorPlugin::_node_removed(Node *p_node) { } void MultiplayerEditorPlugin::_pinned() { - if (!repl_editor->get_pin()->is_pressed()) { + if (!repl_editor->get_pin()->is_pressed() && repl_editor->get_current() == nullptr) { if (repl_editor->is_visible_in_tree()) { EditorNode::get_bottom_panel()->hide_bottom_panel(); } diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp index f6df212d35..58803124cf 100644 --- a/modules/multiplayer/editor/replication_editor.cpp +++ b/modules/multiplayer/editor/replication_editor.cpp @@ -270,6 +270,7 @@ ReplicationEditor::ReplicationEditor() { pin = memnew(Button); pin->set_theme_type_variation("FlatButton"); pin->set_toggle_mode(true); + pin->set_tooltip_text(TTR("Pin replication editor")); hb->add_child(pin); tree = memnew(Tree); |