From dd11265c4ccd808ff0af59b9d4af1dd0db5df38e Mon Sep 17 00:00:00 2001
From: PiCode <122909224+PiCode9560@users.noreply.github.com>
Date: Sat, 30 Aug 2025 07:12:34 +0300
Subject: [PATCH] Improve suspend button
---
editor/icons/Suspend.svg | 1 +
editor/run/game_view_plugin.cpp | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
create mode 100644 editor/icons/Suspend.svg
diff --git a/editor/icons/Suspend.svg b/editor/icons/Suspend.svg
new file mode 100644
index 00000000000..daba9c27d22
--- /dev/null
+++ b/editor/icons/Suspend.svg
@@ -0,0 +1 @@
+
diff --git a/editor/run/game_view_plugin.cpp b/editor/run/game_view_plugin.cpp
index 4903d02b649..18677397a10 100644
--- a/editor/run/game_view_plugin.cpp
+++ b/editor/run/game_view_plugin.cpp
@@ -776,7 +776,7 @@ void GameView::_notification(int p_what) {
} break;
case NOTIFICATION_THEME_CHANGED: {
- suspend_button->set_button_icon(get_editor_theme_icon(SNAME("Pause")));
+ suspend_button->set_button_icon(get_editor_theme_icon(SNAME("Suspend")));
next_frame_button->set_button_icon(get_editor_theme_icon(SNAME("NextFrame")));
node_type_button[RuntimeNodeSelect::NODE_TYPE_NONE]->set_button_icon(get_editor_theme_icon(SNAME("InputEventJoypadMotion")));
@@ -1064,6 +1064,7 @@ GameView::GameView(Ref p_debugger, EmbeddedProcessBase *p_embe
suspend_button->connect(SceneStringName(toggled), callable_mp(this, &GameView::_suspend_button_toggled));
suspend_button->set_accessibility_name(TTRC("Suspend"));
suspend_button->set_shortcut(ED_GET_SHORTCUT("editor/suspend_resume_embedded_project"));
+ suspend_button->set_tooltip_text(TTRC("Force pause at SceneTree level. Stops all processing, but you can still interact with the project."));
next_frame_button = memnew(Button);
main_menu_hbox->add_child(next_frame_button);