Improve suspend button

This commit is contained in:
PiCode 2025-08-30 07:12:34 +03:00
parent cb850f7719
commit dd11265c4c
2 changed files with 3 additions and 1 deletions

1
editor/icons/Suspend.svg Normal file
View file

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path fill="#e0e0e0" d="m 8,4 h 2 v 2 h 2 V 8 H 8 Z"/><rect width="2.992" height="6" x="2" y="9" fill="#e0e0e0" ry=".289"/><rect width="3" height="6" x="6" y="9" fill="#e0e0e0" ry=".289"/><path fill="#e0e0e0" d="M 9 1 A 6 6 0 0 0 3 7 A 6 6 0 0 0 3.0839844 8 L 5.1269531 8 A 4 4 0 0 1 5 7 A 4 4 0 0 1 9 3 A 4 4 0 0 1 13 7 A 4 4 0 0 1 10 10.873047 L 10 12.916016 A 6 6 0 0 0 15 7 A 6 6 0 0 0 9 1 z"/></svg>

After

Width:  |  Height:  |  Size: 468 B

View file

@ -776,7 +776,7 @@ void GameView::_notification(int p_what) {
} break; } break;
case NOTIFICATION_THEME_CHANGED: { 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"))); 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"))); 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
suspend_button->connect(SceneStringName(toggled), callable_mp(this, &GameView::_suspend_button_toggled)); suspend_button->connect(SceneStringName(toggled), callable_mp(this, &GameView::_suspend_button_toggled));
suspend_button->set_accessibility_name(TTRC("Suspend")); suspend_button->set_accessibility_name(TTRC("Suspend"));
suspend_button->set_shortcut(ED_GET_SHORTCUT("editor/suspend_resume_embedded_project")); 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); next_frame_button = memnew(Button);
main_menu_hbox->add_child(next_frame_button); main_menu_hbox->add_child(next_frame_button);