Launch question bank directly from navigation
This commit is contained in:
+4
-3
@@ -335,7 +335,7 @@ func _populate_navigation(container: VBoxContainer, include_brand: bool) -> void
|
||||
container.add_child(HSeparator.new())
|
||||
|
||||
_add_nav_button(container, "home", "Home", "house", true)
|
||||
_add_nav_button(container, "practice", "Practice", "pencil", true)
|
||||
_add_nav_button(container, "question_bank", "Question Bank", "clipboard-list", true)
|
||||
_add_nav_button(container, "exams", "Exams", "clipboard-list", true)
|
||||
_add_nav_button(container, "ccs", "CCS Cases", "stethoscope", true)
|
||||
_add_nav_button(container, "performance", "Performance", "chart-no-axes-column-increasing", true)
|
||||
@@ -379,7 +379,7 @@ func _add_nav_button(container: VBoxContainer, key: String, label_text: String,
|
||||
func _on_navigation_pressed(key: String) -> void:
|
||||
match key:
|
||||
"home": show_screen("selection", "exam")
|
||||
"practice": show_screen("selection", "step3")
|
||||
"question_bank": show_screen("selection", "question_bank")
|
||||
"exams": show_screen("simulation_history")
|
||||
"ccs": show_screen("ccs_hub")
|
||||
"performance": show_screen("profile")
|
||||
@@ -780,11 +780,12 @@ func _exit_run() -> void:
|
||||
var ccs_player = screens.get("ccs_player")
|
||||
if ccs_player != null and ccs_player.has_method("leave_case"): ccs_player.leave_case()
|
||||
return
|
||||
var was_core_run := BlockSessionService.session_kind == "core"
|
||||
if BlockSessionService.block_started and BlockSessionService.session_kind != "simulation":
|
||||
BlockSessionService.finish_block()
|
||||
elif BlockSessionService.session_kind == "simulation":
|
||||
BlockSessionService.block_started = false
|
||||
show_screen("selection", "step3")
|
||||
show_screen("selection", "exam" if was_core_run else "step3")
|
||||
|
||||
|
||||
func _open_profile_from_menu() -> void:
|
||||
|
||||
Reference in New Issue
Block a user