Connect graphical CCS interviews to cases

This commit is contained in:
hz
2026-08-05 20:14:27 -05:00
parent 31093ab80d
commit af2bbb673d
16 changed files with 547 additions and 28 deletions
+6
View File
@@ -34,6 +34,7 @@ var queue: Array = []
var text_scale := 1.0
var highlights := {}
var request_access_token := ""
var launch_origin := "ccs"
func _ready() -> void:
@@ -77,6 +78,10 @@ func send_command(type: String, code: String = "", minutes: int = 0) -> void:
"minutes": minutes
})
func send_dialogue_choice(choice_id: String) -> void:
send_command("dialogue_choice", choice_id)
func send_batch(commands: Array) -> void:
if attempt.is_empty() or commands.is_empty():
return
@@ -272,6 +277,7 @@ func _escape_bbcode(value: String) -> String:
func _on_auth_changed() -> void:
if not AuthState.is_logged_in:
launch_origin = "ccs"
highlights.clear()
text_scale = 1.0
attempt = {}