Début du rework de nuna
This commit is contained in:
+8
-6
@@ -85,6 +85,10 @@ func new_patient():
|
||||
patient_file_title.text = Patient.file_title
|
||||
patient_recording.text = ""
|
||||
patient.texture = Patient.image
|
||||
|
||||
#Setting up UI
|
||||
next_patient.show()
|
||||
console_display(Globals.directives)
|
||||
|
||||
|
||||
func _on_call_next_patient_pressed(): #Brings in next patient and sets up the desk controls
|
||||
@@ -199,7 +203,7 @@ func _on_tab_recording_pressed(): #Shows the recording tab
|
||||
func _change_emotion(dialogue_line) -> void: #Change emotions following dialogue tags
|
||||
|
||||
var line_tag = dialogue_line.tags
|
||||
|
||||
print("Patient marker value: " + str(Patient.marker[0]))
|
||||
if line_tag.is_empty() == false:
|
||||
var new_emotion = line_tag[0]
|
||||
patient.texture = Patient.emotions[String(new_emotion)]
|
||||
@@ -212,7 +216,7 @@ func _on_green_button_pressed(): #Releases the patient
|
||||
|
||||
#Greening the vibe
|
||||
green_backroom.show()
|
||||
patient.modulate = Color(0.4,1,0.4,1)
|
||||
patient.modulate = Color(0.5,1,0.5,1)
|
||||
|
||||
clear_patient("release") #Clearing the patient
|
||||
|
||||
@@ -223,7 +227,7 @@ func _on_red_button_pressed(): #Terminates the patient
|
||||
|
||||
#Redding the vibe
|
||||
red_backroom.show()
|
||||
patient.modulate = Color(1,0,0,1)
|
||||
patient.modulate = Color(1,0.1,0.1,1)
|
||||
|
||||
clear_patient("terminate") #Clearing the patient
|
||||
|
||||
@@ -287,15 +291,14 @@ func clear_patient(choice:String): #Clears patient and transitions towards next
|
||||
#Hiding Computer screen and resetting Console screen once the animation is done
|
||||
shutters_animation.play(choice)
|
||||
await shutters_animation.animation_finished
|
||||
console_display(Globals.directives)
|
||||
computer_screen.hide()
|
||||
console_screen.hide()
|
||||
|
||||
#Descending Floor if diagnoses_quota reached
|
||||
if accurate_diagnoses == Globals.diagnoses_quota:
|
||||
descend_floor()
|
||||
else:
|
||||
new_patient()
|
||||
next_patient.show()
|
||||
|
||||
|
||||
#Reenabling mouse filter and resetting buttons
|
||||
@@ -358,4 +361,3 @@ func descend_floor(): #Descends to next floor
|
||||
|
||||
#Setting up new patient
|
||||
new_patient()
|
||||
next_patient.show()
|
||||
|
||||
Reference in New Issue
Block a user