Add interactive CCS case practice
This commit is contained in:
@@ -88,7 +88,7 @@ func _build_exam_view() -> void:
|
||||
_add_exam_option("STEP 1", "Foundational sciences", false)
|
||||
_add_exam_option("STEP 2", "Clinical knowledge", false)
|
||||
_add_exam_option("STEP 3", "Advanced clinical management", true)
|
||||
_add_exam_option("CCS Cases", "Interactive case simulations", false)
|
||||
_add_exam_option("CCS Cases", "Interactive case simulations", true, "ccs")
|
||||
|
||||
|
||||
func _build_mode_view() -> void:
|
||||
@@ -197,7 +197,7 @@ func _build_mode_view() -> void:
|
||||
mode_view.add_child(spacer)
|
||||
|
||||
|
||||
func _add_exam_option(option_name: String, description: String, available: bool) -> void:
|
||||
func _add_exam_option(option_name: String, description: String, available: bool, destination: String = "step3") -> void:
|
||||
var button := Button.new()
|
||||
button.text = "%s\n%s | %s" % [option_name, description, "Available" if available else "Coming Soon"]
|
||||
button.alignment = HORIZONTAL_ALIGNMENT_LEFT
|
||||
@@ -208,7 +208,8 @@ func _add_exam_option(option_name: String, description: String, available: bool)
|
||||
button.disabled = not available
|
||||
if available:
|
||||
Style.style_primary_button(button)
|
||||
button.pressed.connect(func(): _show_stage("step3"))
|
||||
if destination == "ccs": button.pressed.connect(func(): main.show_screen("ccs_hub"))
|
||||
else: button.pressed.connect(func(): _show_stage("step3"))
|
||||
exam_grid.add_child(button)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user