diff options
| author | Yuri Sizov <yuris@humnom.net> | 2023-09-19 18:03:10 +0200 |
|---|---|---|
| committer | Yuri Sizov <yuris@humnom.net> | 2023-09-19 22:36:29 +0200 |
| commit | 4bd569be95f0e8ba34813b0d8fc53bab1125ccaa (patch) | |
| tree | fd74d6aacd1f1fa8d92fa61acd36d96023504579 /modules/multiplayer | |
| parent | 571cd0eb791b37e9a8adda9f909251138170f6b7 (diff) | |
| download | redot-engine-4bd569be95f0e8ba34813b0d8fc53bab1125ccaa.tar.gz | |
Replace flat buttons with flat-styled buttons with a visible pressed state
Diffstat (limited to 'modules/multiplayer')
| -rw-r--r-- | modules/multiplayer/editor/replication_editor.cpp | 7 |
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); |
