diff options
Diffstat (limited to 'modules/multiplayer/editor')
-rw-r--r-- | modules/multiplayer/editor/editor_network_profiler.cpp | 10 | ||||
-rw-r--r-- | modules/multiplayer/editor/replication_editor.cpp | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/modules/multiplayer/editor/editor_network_profiler.cpp b/modules/multiplayer/editor/editor_network_profiler.cpp index f5f20d6931..dc3a3e3be7 100644 --- a/modules/multiplayer/editor/editor_network_profiler.cpp +++ b/modules/multiplayer/editor/editor_network_profiler.cpp @@ -45,11 +45,11 @@ void EditorNetworkProfiler::_notification(int p_what) { switch (p_what) { case NOTIFICATION_THEME_CHANGED: { if (activate->is_pressed()) { - activate->set_icon(theme_cache.stop_icon); + activate->set_button_icon(theme_cache.stop_icon); } else { - activate->set_icon(theme_cache.play_icon); + activate->set_button_icon(theme_cache.play_icon); } - clear_button->set_icon(theme_cache.clear_icon); + clear_button->set_button_icon(theme_cache.clear_icon); incoming_bandwidth_text->set_right_icon(theme_cache.incoming_bandwidth_icon); outgoing_bandwidth_text->set_right_icon(theme_cache.outgoing_bandwidth_icon); @@ -184,10 +184,10 @@ void EditorNetworkProfiler::_activate_pressed() { void EditorNetworkProfiler::_update_button_text() { if (activate->is_pressed()) { - activate->set_icon(theme_cache.stop_icon); + activate->set_button_icon(theme_cache.stop_icon); activate->set_text(TTR("Stop")); } else { - activate->set_icon(theme_cache.play_icon); + activate->set_button_icon(theme_cache.play_icon); activate->set_text(TTR("Start")); } } diff --git a/modules/multiplayer/editor/replication_editor.cpp b/modules/multiplayer/editor/replication_editor.cpp index 386feae4f9..8de82ef409 100644 --- a/modules/multiplayer/editor/replication_editor.cpp +++ b/modules/multiplayer/editor/replication_editor.cpp @@ -353,8 +353,8 @@ void ReplicationEditor::_notification(int p_what) { } case NOTIFICATION_ENTER_TREE: { add_theme_style_override(SceneStringName(panel), EditorNode::get_singleton()->get_editor_theme()->get_stylebox(SceneStringName(panel), SNAME("Panel"))); - add_pick_button->set_icon(get_theme_icon(SNAME("Add"), EditorStringName(EditorIcons))); - pin->set_icon(get_theme_icon(SNAME("Pin"), EditorStringName(EditorIcons))); + add_pick_button->set_button_icon(get_theme_icon(SNAME("Add"), EditorStringName(EditorIcons))); + pin->set_button_icon(get_theme_icon(SNAME("Pin"), EditorStringName(EditorIcons))); } break; } } |