Refine question toolbar icons and pause menu
This commit is contained in:
@@ -727,13 +727,6 @@ func _build_app_menu() -> void:
|
||||
sound_toggle.toggled.connect(UISoundService.set_sounds_enabled)
|
||||
content.add_child(sound_toggle)
|
||||
|
||||
var profile := Button.new()
|
||||
profile.text = "Profile"
|
||||
profile.custom_minimum_size = Vector2(0, 48)
|
||||
Style.style_chip(profile, Style.CYAN)
|
||||
profile.pressed.connect(_open_profile_from_menu)
|
||||
content.add_child(profile)
|
||||
|
||||
menu_exit_button = Button.new()
|
||||
menu_exit_button.text = "Exit Run"
|
||||
menu_exit_button.custom_minimum_size = Vector2(0, 48)
|
||||
@@ -786,12 +779,3 @@ func _exit_run() -> void:
|
||||
elif BlockSessionService.session_kind == "simulation":
|
||||
BlockSessionService.block_started = false
|
||||
show_screen("selection", "exam" if was_core_run else "step3")
|
||||
|
||||
|
||||
func _open_profile_from_menu() -> void:
|
||||
_close_app_menu()
|
||||
if BlockSessionService.block_started and BlockSessionService.session_kind != "simulation":
|
||||
BlockSessionService.finish_block()
|
||||
elif BlockSessionService.session_kind == "simulation":
|
||||
BlockSessionService.block_started = false
|
||||
show_screen("profile")
|
||||
|
||||
Reference in New Issue
Block a user