mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Improve suspend button
This commit is contained in:
parent
cb850f7719
commit
dd11265c4c
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue