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

View file

@ -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<GameViewDebugger> 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);