Skip to content

Commit de27f3a

Browse files
committed
Merge pull request #110108 from PiCode9560/suspend-button
Differentiate the suspend button in the Game tab with the Pause button in the editor run bar
2 parents daa1fc9 + dd11265 commit de27f3a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

editor/icons/Suspend.svg

Lines changed: 1 addition & 0 deletions
Loading

editor/run/game_view_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ void GameView::_notification(int p_what) {
776776
} break;
777777

778778
case NOTIFICATION_THEME_CHANGED: {
779-
suspend_button->set_button_icon(get_editor_theme_icon(SNAME("Pause")));
779+
suspend_button->set_button_icon(get_editor_theme_icon(SNAME("Suspend")));
780780
next_frame_button->set_button_icon(get_editor_theme_icon(SNAME("NextFrame")));
781781

782782
node_type_button[RuntimeNodeSelect::NODE_TYPE_NONE]->set_button_icon(get_editor_theme_icon(SNAME("InputEventJoypadMotion")));
@@ -1064,6 +1064,7 @@ GameView::GameView(Ref<GameViewDebugger> p_debugger, EmbeddedProcessBase *p_embe
10641064
suspend_button->connect(SceneStringName(toggled), callable_mp(this, &GameView::_suspend_button_toggled));
10651065
suspend_button->set_accessibility_name(TTRC("Suspend"));
10661066
suspend_button->set_shortcut(ED_GET_SHORTCUT("editor/suspend_resume_embedded_project"));
1067+
suspend_button->set_tooltip_text(TTRC("Force pause at SceneTree level. Stops all processing, but you can still interact with the project."));
10671068

10681069
next_frame_button = memnew(Button);
10691070
main_menu_hbox->add_child(next_frame_button);

0 commit comments

Comments
 (0)