small changes

This commit is contained in:
2025-06-16 01:12:48 +02:00
parent fb74a1cd10
commit 2515716591
13 changed files with 86 additions and 87 deletions
+14 -9
View File
@@ -93,6 +93,7 @@ func new_patient(patient_id):
#Show patient file
func _on_patient_file_pressed():
for node in margin_container.get_children():
@@ -103,6 +104,7 @@ func _on_patient_file_pressed():
#Show guidebook
func _on_guidebook_pressed():
for node in margin_container.get_children():
@@ -113,6 +115,7 @@ func _on_guidebook_pressed():
#Brings in next patient
func _on_call_next_patient_pressed():
#Hiding and Showing appropriate scenes
@@ -126,6 +129,7 @@ func _on_call_next_patient_pressed():
#Shows patient recording
func _on_patient_recording_pressed():
for node in margin_container.get_children():
@@ -136,6 +140,7 @@ func _on_patient_recording_pressed():
#Records the dialogues
func _recording_text(dialogue_line):
var line = dialogue_line.text
@@ -151,11 +156,12 @@ func _recording_text(dialogue_line):
else :
character_colour = "[color=darkred]"
patient_recording.append_text(character_colour + character + "[/color]\n")
patient_recording.append_text(line)
#Show face zoom
func _on_examine_pressed():
for node in margin_container.get_children():
@@ -165,6 +171,7 @@ func _on_examine_pressed():
#Change emotions following dialogue tags
func _change_emotion(dialogue_line) -> void:
var line_tag = dialogue_line.tags
@@ -178,6 +185,7 @@ func _change_emotion(dialogue_line) -> void:
func _on_containment_pressed():
#Ask for confirmation
var lambda = func(): clear_patient("containment")
var choice_text = "[center]Do you really want to send this patient to [color=darkred]Containment[/color] ?[/center]"
@@ -187,6 +195,7 @@ func _on_containment_pressed():
func _on_psych_ward_pressed():
#Ask for confirmation
var lambda = func(): clear_patient("psych_ward")
var choice_text = "[center]Do you really want to send this patient to the [color=darkgreen]Psych Ward[/color] ?[/center]"
@@ -194,6 +203,7 @@ func _on_psych_ward_pressed():
#Starting dialogue
func start_balloon(dialogue_resource: Resource, start_title: String):
#Freeing Previous Balloon and Disconnecting DialogueManager signals
@@ -211,6 +221,7 @@ func start_balloon(dialogue_resource: Resource, start_title: String):
#Clears patient and transitions towards next patient or end of day
func clear_patient(choice:String):
#Hiding Patient Controls and showing Patient Face
@@ -234,7 +245,7 @@ func clear_patient(choice:String):
TransitionScreen.transition("big", scenes_to_hide, scenes_to_show)
await TransitionScreen.transition_finished
if Globals.patient_count < Globals.daily_patient_limit:
#Setting Up Next Patient
new_patient("564")
@@ -254,6 +265,7 @@ func _on_recovery_pressed():
#Cleaning balloon
func clean_balloon():
#Freeing Previous Balloon and Disconnecting DialogueManager signals
@@ -263,10 +275,3 @@ func clean_balloon():
DialogueManager.disconnect("got_dialogue", _change_emotion)
if DialogueManager.is_connected("got_dialogue", _recording_text):
DialogueManager.disconnect("got_dialogue", _recording_text)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta: float) -> void:
pass