summaryrefslogtreecommitdiffstats
path: root/modules/multiplayer/editor/replication_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-25 17:18:29 +0200
commit8ddf73c74dfa6ca51462a4721d77ba84e813b51a (patch)
tree22887982e518ef8753d27933e3b29a8462e52afb /modules/multiplayer/editor/replication_editor.cpp
parent3e15c8f28597df4354b40ba85056e87cfac56845 (diff)
parent4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (diff)
downloadredot-engine-8ddf73c74dfa6ca51462a4721d77ba84e813b51a.tar.gz
Merge pull request #81939 from YuriSizov/gui-flat-and-depressed
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'modules/multiplayer/editor/replication_editor.cpp')
-rw-r--r--modules/multiplayer/editor/replication_editor.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp
index 1c7546436b..89249dd369 100644
--- a/modules/multiplayer/editor/replication_editor.cpp
+++ b/modules/multiplayer/editor/replication_editor.cpp
@@ -245,24 +245,29 @@ ReplicationEditor::ReplicationEditor() {
add_pick_button->connect("pressed", callable_mp(this, &ReplicationEditor::_pick_new_property));
add_pick_button->set_text(TTR("Add property to sync..."));
hb->add_child(add_pick_button);
+
VSeparator *vs = memnew(VSeparator);
vs->set_custom_minimum_size(Size2(30 * EDSCALE, 0));
hb->add_child(vs);
hb->add_child(memnew(Label(TTR("Path:"))));
+
np_line_edit = memnew(LineEdit);
np_line_edit->set_placeholder(":property");
np_line_edit->set_h_size_flags(SIZE_EXPAND_FILL);
np_line_edit->connect("text_submitted", callable_mp(this, &ReplicationEditor::_np_text_submitted));
hb->add_child(np_line_edit);
+
add_from_path_button = memnew(Button);
add_from_path_button->connect("pressed", callable_mp(this, &ReplicationEditor::_add_pressed));
add_from_path_button->set_text(TTR("Add from path"));
hb->add_child(add_from_path_button);
+
vs = memnew(VSeparator);
vs->set_custom_minimum_size(Size2(30 * EDSCALE, 0));
hb->add_child(vs);
+
pin = memnew(Button);
- pin->set_flat(true);
+ pin->set_theme_type_variation("FlatButton");
pin->set_toggle_mode(true);
hb->add_child(pin);