1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Improve replication editor's pin button

- When unpressed, only hide the editor if MultiplayerSynchronizer is not
  selected.
- Add tooltip text.
This commit is contained in:
Haoyu Qiu
2024-03-25 23:12:26 +08:00
parent ccb1cb4845
commit 8cfded5934
2 changed files with 2 additions and 1 deletions

View File

@@ -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);