Make graphical CCS dialogue choice first
This commit is contained in:
@@ -92,18 +92,18 @@ func _render_state() -> void:
|
||||
|
||||
func _render_attempt(attempt: Dictionary) -> void:
|
||||
if str(attempt.get("state", "")) != "active":
|
||||
_handoff_to_classic_player()
|
||||
_show_unsupported_attempt("This active case is not available in the graphical interview yet.")
|
||||
return
|
||||
var interview: Dictionary = attempt.get("interview", {})
|
||||
if interview.is_empty():
|
||||
_handoff_to_classic_player()
|
||||
_show_unsupported_attempt("This active case does not include a graphical dialogue interview.")
|
||||
return
|
||||
var node: Dictionary = interview.get("currentNode", {})
|
||||
if node.is_empty():
|
||||
_handoff_to_classic_player()
|
||||
_show_unsupported_attempt("The graphical interview could not load its current dialogue.")
|
||||
return
|
||||
if bool(attempt.get("openingCompleted", false)) and not bool(node.get("isTerminal", false)):
|
||||
_handoff_to_classic_player()
|
||||
_show_unsupported_attempt("This case has progressed beyond the graphical interview.")
|
||||
return
|
||||
_show_doctor_office(node, attempt)
|
||||
|
||||
@@ -120,7 +120,7 @@ func _build_selection_view() -> void:
|
||||
heading.add_theme_font_size_override("font_size", 28)
|
||||
selection_view.add_child(heading)
|
||||
var description := Label.new()
|
||||
description.text = "Begin a timed patient interview, then continue into clinical management."
|
||||
description.text = "Interview the patient by selecting the questions you want to ask."
|
||||
description.autowrap_mode = TextServer.AUTOWRAP_WORD_SMART
|
||||
Brand.apply_font(description)
|
||||
description.add_theme_font_size_override("font_size", 16)
|
||||
@@ -158,6 +158,12 @@ func _show_selection(message: String = "") -> void:
|
||||
retry_button.visible = false
|
||||
|
||||
|
||||
func _show_unsupported_attempt(message: String) -> void:
|
||||
_show_selection(message)
|
||||
_clear_children(case_list)
|
||||
status_label.text += " Finish or abandon it from CCS Cases before starting another graphical interview."
|
||||
|
||||
|
||||
func _render_case_selection() -> void:
|
||||
_show_selection()
|
||||
_clear_children(case_list)
|
||||
|
||||
Reference in New Issue
Block a user