screening_desk buttons
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ccdjt6t0wgdo1"
|
||||
path="res://.godot/imported/patient_564.png-f939a362e5d94ad685373531cf17dc0b.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Art/Patients/patient_564/patient_564.png"
|
||||
dest_files=["res://.godot/imported/patient_564.png-f939a362e5d94ad685373531cf17dc0b.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
Binary file not shown.
Binary file not shown.
|
After Width: | Height: | Size: 659 KiB |
@@ -0,0 +1,34 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://ow1irc5345kv"
|
||||
path="res://.godot/imported/patient_564_neutral.png-b41269b93c0ebc8d180e6e089750a727.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Art/Patients/patient_564/patient_564_neutral.png"
|
||||
dest_files=["res://.godot/imported/patient_564_neutral.png-b41269b93c0ebc8d180e6e089750a727.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="dialogue_manager_compiler_13"
|
||||
type="Resource"
|
||||
uid="uid://dh8ce25f0hs24"
|
||||
path="res://.godot/imported/patient_1.dialogue-83dd5799156f714a590eef7ba3d9a0fe.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Dialogues/Patients/patient_1.dialogue"
|
||||
dest_files=["res://.godot/imported/patient_1.dialogue-83dd5799156f714a590eef7ba3d9a0fe.tres"]
|
||||
|
||||
[params]
|
||||
|
||||
defaults=true
|
||||
@@ -0,0 +1,240 @@
|
||||
~ start
|
||||
|
||||
do CurrentPatient.marker.fill(0)
|
||||
set CurrentPatient.dialog_tree = CurrentPatient.build_dialog_tree([1100,1200,1210,1220, 1300, 1400, 1500, 1610, 1620])
|
||||
|
||||
: The patient remains still, watching you expectantly.
|
||||
|
||||
Psychiatrist: Greetings Mr Orleg. You shall be my in care for the duration of your stay in this facility.
|
||||
|
||||
Mr Orleg: Greetings Doctor. I need your help, i don't know why i'm here, there must have been a mistake !
|
||||
|
||||
~ day_1_choice_1
|
||||
|
||||
- Tell me why you were brought here. [if CurrentPatient.dialog_tree[1100] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1100] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.change_emotion("neutral")
|
||||
do CurrentPatient.dialog_flags["insight"].append("Anosognosia")
|
||||
|
||||
Mr Orleg: Sure. I was at the usual grocery store next door, and there was that cashier who was threatening me. I was busy explaining her nobody can talk to Mr Orleg this way, when these damned cops came out of nowhere and brutally restrained me ! Can you imagine ?!
|
||||
|
||||
=> day_1_choice_1
|
||||
|
||||
- Do you feel safe in this room ? [if CurrentPatient.dialog_tree[1200] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1200] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.change_emotion("scared")
|
||||
do CurrentPatient.dialog_flags["thought_content"].append("Persecutory delusions")
|
||||
|
||||
Mr Orleg: Honestly ? I don't. Some of your colleagues have been giving me the heeby jeebies. Gotta stay sharp, i'm pretty sure he's here.
|
||||
|
||||
~ day_1_choice_1_2
|
||||
|
||||
- Who's "he" ? [if CurrentPatient.dialog_tree[1210] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1210] = "asked"
|
||||
do CurrentPatient.marker[1] += 1
|
||||
do CurrentPatient.dialog_flags["thought_content"].append("Mystical delusions")
|
||||
|
||||
Mr Orleg: Shhh... you musntn't speak his name aloud. "He" is the Harbinger. The Prophet and the Reaper. The Messiah and the Deceiver.
|
||||
|
||||
if CurrentPatient.marker[1] == 2
|
||||
set CurrentPatient.marker[1] = 0
|
||||
=> day_1_choice_1
|
||||
else
|
||||
=> day_1_choice_1_2
|
||||
|
||||
- Which of my colleagues are you talking about ? [if CurrentPatient.dialog_tree[1220] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1220] = "asked"
|
||||
do CurrentPatient.marker[1] += 1
|
||||
do CurrentPatient.dialog_flags["perceptions"].append("Mystical delusions")
|
||||
|
||||
Mr Orleg: Every single one of them... He's been using their shapes to contact me. I need to remain strong, Doctor.
|
||||
|
||||
if CurrentPatient.marker[1] == 2
|
||||
set CurrentPatient.marker[1] = 0
|
||||
=> day_1_choice_1
|
||||
else
|
||||
=> day_1_choice_1_2
|
||||
|
||||
- How has your sleep been recently ? [if CurrentPatient.dialog_tree[1300] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1300] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.change_emotion("neutral")
|
||||
do CurrentPatient.dialog_flags["sleep"].append("Insomnia")
|
||||
|
||||
Mr Orleg: Hard to keep my eyes shut lately, i'll admit. I definitely could use some rest.
|
||||
|
||||
=> day_1_choice_1
|
||||
|
||||
- How are you feeling lately ? [if CurrentPatient.dialog_tree[1400] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1400] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.change_emotion("neutral")
|
||||
do CurrentPatient.dialog_flags["mood"].append("Euthymia")
|
||||
|
||||
Mr Orleg: I'm feeling rather fine, actually. My life's quite enjoyable, except for the whole "i'm locked in here cause people think i'm crazy" situation. You've got to help me Doctor.
|
||||
|
||||
- Have you had any thoughts about wanting to end your life ?
|
||||
|
||||
do CurrentPatient.dialog_flags["suicidal_ideation"].append("None")
|
||||
|
||||
Mr Orleg: I would never dare end the life God has given me.
|
||||
|
||||
=> day_1_choice_1
|
||||
|
||||
- Examine [if CurrentPatient.dialog_tree[1500] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1500] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.dialog_flags["appearance"].append("Fixed gaze")
|
||||
|
||||
: The patient appears to be calm and collected. His garment is clean, if a bit crumpled. His gaze switches back and forth between a wide-eyed focus on your face, and vacantly staring at the wall.
|
||||
|
||||
=> day_1_choice_1
|
||||
|
||||
- Don't you feel anxious about this otherwordly being targeting you ? [if CurrentPatient.marker[0] == 5]
|
||||
|
||||
set CurrentPatient.marker[0] = 0
|
||||
do CurrentPatient.change_emotion("happy")
|
||||
do CurrentPatient.dialog_flags["thought_process"].append("Ideo-affective dissociation")
|
||||
do CurrentPatient.dialog_flags["thought_content"].append("Megalomaniac delusions")
|
||||
|
||||
Mr Orleg: Not really. I'm protected by God. No one can hurt me.
|
||||
|
||||
~ day_1_choice_1_6
|
||||
|
||||
- How do you know God protects you ? [if CurrentPatient.dialog_tree[1610] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1610] = "asked"
|
||||
set CurrentPatient.marker[2] += 1
|
||||
do CurrentPatient.dialog_flags["perceptions"].append("Intra-psychic auditory hallucinations")
|
||||
|
||||
Mr Orleg: He shares his Will with me directly inside my head. We have a special connection.
|
||||
|
||||
if CurrentPatient.marker[2] == 2
|
||||
set CurrentPatient.marker[2] = 0
|
||||
=> day_1_choice_2
|
||||
else
|
||||
=> day_1_choice_1_6
|
||||
|
||||
- Have you ever seen God or this evil being with your own eyes ? [if CurrentPatient.dialog_tree[1620] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1620] = "asked"
|
||||
set CurrentPatient.marker[2] += 1
|
||||
|
||||
Mr Orleg: Never. I don't need to see them to know they're here.
|
||||
|
||||
if CurrentPatient.marker[2] == 2
|
||||
set CurrentPatient.marker[2] = 0
|
||||
=> day_1_choice_2
|
||||
else
|
||||
=> day_1_choice_1_6
|
||||
|
||||
~ day_1_choice_2
|
||||
|
||||
- Send to Reset
|
||||
|
||||
Psychiatrist: You are in need of psychiatric care, Mr Orleg. My colleagues here will take you to the resetting room for adequate treatment.
|
||||
|
||||
do CurrentPatient.change_emotion("scared")
|
||||
|
||||
Mr Orleg: You can't do that Doctor ! This is a mistake !
|
||||
|
||||
Mr Orleg: I swear i'm not crazy !
|
||||
|
||||
do CurrentPatient.send_to_reset()
|
||||
|
||||
=> END
|
||||
|
||||
- Send to Isolation
|
||||
|
||||
Psychiatrist: I have assessed that you are currently unstable, Mr Orleg. You may be dangerous to other people, and even to yourself. We are going to Isolate you to ensure your safety.
|
||||
|
||||
do CurrentPatient.change_emotion("scared")
|
||||
|
||||
Mr Orleg: What ?? Th- This can't be...
|
||||
|
||||
Mr Orleg: Please, have mercy...
|
||||
|
||||
do CurrentPatient.send_to_isolation
|
||||
|
||||
=> END
|
||||
|
||||
- End the evaluation
|
||||
|
||||
Psychiatrist: Thank you for answering my questions, Mr Orleg. You are to remain here for further observation.
|
||||
|
||||
do CurrentPatient.change_emotion("angry")
|
||||
|
||||
Mr Orleg: I knew it. You are just like the others, faking compassion for profit. You disgust me.
|
||||
|
||||
Psychiatrist: I am here to help you, I just need more time to make the right decision. Please be patient, sir.
|
||||
|
||||
Mr Orleg: This whole thing's a joke...
|
||||
|
||||
=> END
|
||||
|
||||
=> END
|
||||
|
||||
|
||||
|
||||
~ mr_orleg_day_2_dialogue_start
|
||||
|
||||
do CurrentPatient.marker.fill(0)
|
||||
set CurrentPatient.dialog_tree = CurrentPatient.build_dialog_tree([1100,1200,1210,1220, 1300, 1400, 1500, 1610, 1620])
|
||||
|
||||
: The patient is hurriedly mumbling something to himself in hushed tones. He abruptly stops as you step in, fixing you with an unnerving stare.
|
||||
|
||||
Mr Orleg: Back for round 2, I presume ? Ask away, Doc.
|
||||
|
||||
~ day_2_choice_1
|
||||
|
||||
- How was your first night here ? [if CurrentPatient.dialog_tree[1100] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1100] = "asked"
|
||||
do CurrentPatient.marker[0] += 1
|
||||
do CurrentPatient.change_emotion("scared")
|
||||
do CurrentPatient.dialog_flags["insight"].append("Insomnia")
|
||||
do CurrentPatient.dialog_flags["thought_content"].append("Persecutory delusions")
|
||||
|
||||
Mr Orleg: I couldn't get my eyes shut. The Deceiver never rests. I could feel him breathing on my skin in the dark. It felt cold, so cold...
|
||||
|
||||
~ day_2_choice_1_1
|
||||
|
||||
- You told me you felt safe under God's protection. Is it still the case ? [if CurrentPatient.dialog_tree[1110] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1110] = "asked"
|
||||
do CurrentPatient.marker[1] += 1
|
||||
do CurrentPatient.dialog_flags["thought_content"].append("Mystical delusions")
|
||||
|
||||
Mr Orleg: Yes, I still feel his Holy Presence within me, but it's getting fainter and fainter... This place is cursed. I need to get out of here fast.
|
||||
|
||||
if CurrentPatient.marker[1] == 2
|
||||
set CurrentPatient.marker[1] = 0
|
||||
=> day_2_choice_1
|
||||
else
|
||||
=> day_2_choice_1_1
|
||||
|
||||
- Were you able to see the Deceiver ? How did you know it was Him in your room last night ? [if CurrentPatient.dialog_tree[1120] == "not_asked"]
|
||||
|
||||
set CurrentPatient.dialog_tree[1120] = "asked"
|
||||
do CurrentPatient.marker[1] += 1
|
||||
do CurrentPatient.dialog_flags["perceptions"].append("Mystical delusions")
|
||||
|
||||
Mr Orleg: Because I KNOW it ! It starts with yellow water dripping from the ceilings, flowing more and more... the smell ! Gods, the smell...
|
||||
|
||||
if CurrentPatient.marker[1] == 2
|
||||
set CurrentPatient.marker[1] = 0
|
||||
=> day_2_choice_1
|
||||
else
|
||||
=> day_2_choice_1_1
|
||||
|
||||
=> day_2_choice_1
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
[remap]
|
||||
|
||||
importer="dialogue_manager_compiler_13"
|
||||
type="Resource"
|
||||
uid="uid://c0d76rpvim0cu"
|
||||
path="res://.godot/imported/patient_564.dialogue-c43dc74675a586a799f5a9ead356d3ea.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Dialogues/Patients/patient_564.dialogue"
|
||||
dest_files=["res://.godot/imported/patient_564.dialogue-c43dc74675a586a799f5a9ead356d3ea.tres"]
|
||||
|
||||
[params]
|
||||
|
||||
defaults=true
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
|
||||
NAME: Sigur, Sigurdsson
|
||||
|
||||
AGE: 54
|
||||
|
||||
PROFESSION: Botanist
|
||||
|
||||
ADMISSION REASON:
|
||||
Delirium
|
||||
Verbal agression
|
||||
Homicidal threats
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
[remap]
|
||||
|
||||
importer="dialogue_manager_compiler_13"
|
||||
type="Resource"
|
||||
uid="uid://dh8ce25f0hs24"
|
||||
path="res://.godot/imported/patient_1.dialogue-c504d8f23d2b90e6ee45f5c71c616a35.tres"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Dialogues/patient_1.dialogue"
|
||||
dest_files=["res://.godot/imported/patient_1.dialogue-c504d8f23d2b90e6ee45f5c71c616a35.tres"]
|
||||
|
||||
[params]
|
||||
|
||||
defaults=true
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
[ext_resource type="Script" path="res://main_hub.gd" id="1_rvfpd"]
|
||||
[ext_resource type="PackedScene" uid="uid://cahspuhi43bx7" path="res://title_screen.tscn" id="2_3wmv1"]
|
||||
[ext_resource type="PackedScene" uid="uid://chytk2cctjk3x" path="res://screening_desk.tscn" id="3_whctb"]
|
||||
[ext_resource type="PackedScene" uid="uid://dcjhx2g4d056v" path="res://bedroom.tscn" id="4_4fm57"]
|
||||
[ext_resource type="PackedScene" uid="uid://dcjhx2g4d056v" path="res://Bedroom.tscn" id="4_4fm57"]
|
||||
[ext_resource type="PackedScene" uid="uid://igkl2384rxt1" path="res://text_screens.tscn" id="5_85o5j"]
|
||||
[ext_resource type="PackedScene" uid="uid://dixsxwodxuf0b" path="res://dialogue_screens.tscn" id="6_60wm2"]
|
||||
|
||||
|
||||
+1
-29
@@ -1,21 +1,9 @@
|
||||
extends Node
|
||||
|
||||
var emotion: String
|
||||
var dialog_flags : Dictionary = {
|
||||
"history_of_present_illness": [],
|
||||
"appearance": [],
|
||||
"behaviour": [],
|
||||
"speech": [],
|
||||
"thought_process": [],
|
||||
"thought_content": [],
|
||||
"perceptions": [],
|
||||
"insight": [],
|
||||
"sleep": [],
|
||||
"mood": [],
|
||||
"suicidal_ideation": [],
|
||||
}
|
||||
var dialog_tree: Dictionary
|
||||
var marker: Array[int]
|
||||
var patient_file_content: String
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
@@ -27,22 +15,6 @@ func _ready() -> void:
|
||||
marker.fill(0)
|
||||
|
||||
|
||||
|
||||
func new_patient(dialogue_resource):
|
||||
|
||||
var Balloon: Resource = preload("res://Dialogues/balloon.tscn")
|
||||
var balloon: Node = Balloon.instantiate()
|
||||
var panel = balloon.get_node("Balloon/Panel")
|
||||
|
||||
get_tree().current_scene.add_child(balloon)
|
||||
balloon.start(dialogue_resource,"start")
|
||||
|
||||
panel.size = Vector2(1250, 250)
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
||||
func build_dialog_tree(tree_model: Array[int]) -> Dictionary:
|
||||
|
||||
var branch : Dictionary
|
||||
|
||||
+2
-10
@@ -73,7 +73,7 @@ func skip_intro():
|
||||
transition("big", [$TitleScreen], [$ScreeningDesk, UI, UI.get_node("UI/UpperContainer")])
|
||||
await TransitionScreen.transition_finished
|
||||
|
||||
gameplay_loop(load("res://Dialogues/patient_1.dialogue"))
|
||||
$ScreeningDesk.gameplay_loop("564")
|
||||
|
||||
|
||||
#Plays the entire introduction
|
||||
@@ -100,15 +100,7 @@ func play_intro():
|
||||
transition("big", [$DialogueScreens], [$ScreeningDesk, UI, UI.get_node("UI/UpperContainer")])
|
||||
await TransitionScreen.transition_finished
|
||||
|
||||
gameplay_loop(load("res://Dialogues/patient_1.dialogue"))
|
||||
|
||||
|
||||
|
||||
func gameplay_loop(dialogue_resource):
|
||||
|
||||
CurrentPatient.new_patient(dialogue_resource)
|
||||
|
||||
pass
|
||||
$ScreeningDesk.gameplay_loop("564")
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -55,4 +55,4 @@ ui_select={
|
||||
|
||||
[internationalization]
|
||||
|
||||
locale/translations_pot_files=PackedStringArray("res://Dialogues/intro.dialogue", "res://Dialogues/mr_orleg.dialogue", "res://Dialogues/patient_1.dialogue", "res://Dialogues/intro_stash.dialogue")
|
||||
locale/translations_pot_files=PackedStringArray("res://Dialogues/intro.dialogue", "res://Dialogues/mr_orleg.dialogue", "res://Dialogues/patient_1.dialogue", "res://Dialogues/intro_stash.dialogue", "res://Dialogues/Patients/patient_1.dialogue", "res://Dialogues/Patients/patient_564.dialogue")
|
||||
|
||||
+126
-1
@@ -1,12 +1,137 @@
|
||||
extends Control
|
||||
|
||||
@onready var panel_container = $Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer
|
||||
@onready var margin_container = $Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer
|
||||
@onready var patient_file = $Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer/PatientFile
|
||||
@onready var patient_file_title = $Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer/HBoxContainer/PatientFileTitle
|
||||
@onready var face_zoom = $Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/FaceZoom
|
||||
@onready var alone_controls = $Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Alone
|
||||
@onready var patient_controls = $Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient
|
||||
@onready var dialogue_resource: Resource
|
||||
@onready var balloon: Node
|
||||
@onready var patient_emotions : Dictionary
|
||||
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
|
||||
#Connecting signals
|
||||
alone_controls.get_node("PatientFile").pressed.connect(self._patient_file)
|
||||
patient_controls.get_node("PatientFile").pressed.connect(self._patient_file)
|
||||
|
||||
alone_controls.get_node("Guidebook").pressed.connect(self._guidebook)
|
||||
patient_controls.get_node("Guidebook").pressed.connect(self._guidebook)
|
||||
|
||||
alone_controls.get_node("CallNextPatient").pressed.connect(self._call_next_patient)
|
||||
|
||||
patient_controls.get_node("PatientRecording").pressed.connect(self._patient_recording)
|
||||
|
||||
patient_controls.get_node("Examine").pressed.connect(self._examine)
|
||||
|
||||
#Instantiating a custom balloon
|
||||
var Balloon: Resource = load("res://Dialogues/balloon.tscn")
|
||||
balloon = Balloon.instantiate()
|
||||
var panel = balloon.get_node("Balloon/Panel")
|
||||
|
||||
get_tree().current_scene.add_child(balloon)
|
||||
balloon.name = "Balloon"
|
||||
panel.size = Vector2(1260, 250)
|
||||
|
||||
#Hiding everything
|
||||
self.hide()
|
||||
pass # Replace with function body.
|
||||
for node in margin_container.get_children():
|
||||
node.hide()
|
||||
panel_container.hide()
|
||||
face_zoom.hide()
|
||||
patient_controls.hide()
|
||||
|
||||
|
||||
|
||||
func gameplay_loop(patient_id):
|
||||
|
||||
new_patient(patient_id)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
func new_patient(patient_id):
|
||||
|
||||
#Loading Patient Files
|
||||
var file_path: String = "res://Dialogues/Patients/patient_" + String(patient_id) + "_file.txt"
|
||||
print(file_path)
|
||||
var file = FileAccess.open(file_path, FileAccess.READ)
|
||||
var file_content = file.get_as_text()
|
||||
|
||||
patient_file.text = file_content
|
||||
patient_file_title.text = "
|
||||
PATIENT FILE #" + String(patient_id)
|
||||
|
||||
file.close()
|
||||
|
||||
#Loading Face Emotions
|
||||
#Neutral
|
||||
file_path = "res://Art/Patients/patient_" + String(patient_id) + "/patient_" + String(patient_id) + "_neutral.png"
|
||||
var face = load(file_path)
|
||||
var emotion = {"neutral": face}
|
||||
patient_emotions.merge(emotion)
|
||||
|
||||
#Loading Default Face
|
||||
face = patient_emotions["neutral"]
|
||||
face_zoom.texture = face
|
||||
|
||||
#Loading Dialogue Resource
|
||||
var dialogue_resource_path = "res://Dialogues/Patients/patient_" + String(patient_id) + ".dialogue"
|
||||
dialogue_resource = load(dialogue_resource_path)
|
||||
|
||||
|
||||
|
||||
func _patient_file():
|
||||
|
||||
for node in margin_container.get_children():
|
||||
node.hide()
|
||||
panel_container.show()
|
||||
face_zoom.hide()
|
||||
margin_container.get_node("FileContainer").show()
|
||||
|
||||
|
||||
|
||||
func _guidebook():
|
||||
|
||||
for node in margin_container.get_children():
|
||||
node.hide()
|
||||
panel_container.show()
|
||||
face_zoom.hide()
|
||||
margin_container.get_node("Rules").show()
|
||||
|
||||
|
||||
|
||||
func _call_next_patient():
|
||||
|
||||
balloon.start(dialogue_resource, "start")
|
||||
alone_controls.hide()
|
||||
patient_controls.show()
|
||||
|
||||
|
||||
|
||||
func _patient_recording():
|
||||
|
||||
for node in margin_container.get_children():
|
||||
node.hide()
|
||||
panel_container.show()
|
||||
face_zoom.hide()
|
||||
margin_container.get_node("RecordingContainer").show()
|
||||
|
||||
|
||||
|
||||
func _examine():
|
||||
|
||||
for node in margin_container.get_children():
|
||||
node.hide()
|
||||
panel_container.hide()
|
||||
face_zoom.show()
|
||||
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
|
||||
+88
-54
@@ -1,9 +1,8 @@
|
||||
[gd_scene load_steps=8 format=3 uid="uid://chytk2cctjk3x"]
|
||||
[gd_scene load_steps=7 format=3 uid="uid://chytk2cctjk3x"]
|
||||
|
||||
[ext_resource type="Script" path="res://screening_desk.gd" id="1_1s7k3"]
|
||||
[ext_resource type="Texture2D" uid="uid://c3je4gir1qlot" path="res://Art/BlackScreen.png" id="1_r2ji1"]
|
||||
[ext_resource type="Texture2D" uid="uid://cppnad2sauulq" path="res://Art/Office.png" id="3_vcj7d"]
|
||||
[ext_resource type="Texture2D" uid="uid://cngys5i7ggvhn" path="res://Art/ScaredFaceEdited.png" id="4_ronmq"]
|
||||
[ext_resource type="FontFile" uid="uid://ckg5x0oonnjtn" path="res://Art/XanhMono-Regular.ttf" id="4_uvrsh"]
|
||||
[ext_resource type="FontFile" uid="uid://mi5v1uq78g7o" path="res://Art/XanhMono-Italic.ttf" id="5_sybh5"]
|
||||
|
||||
@@ -73,9 +72,9 @@ layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 3.0
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_top = 0
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="PanelContainer" type="PanelContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer"]
|
||||
layout_mode = 2
|
||||
@@ -85,41 +84,46 @@ theme_override_styles/panel = SubResource("StyleBoxFlat_1bdh8")
|
||||
|
||||
[node name="MarginContainer" type="MarginContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 10
|
||||
theme_override_constants/margin_left = 30
|
||||
theme_override_constants/margin_top = 30
|
||||
theme_override_constants/margin_right = 30
|
||||
theme_override_constants/margin_bottom = 30
|
||||
|
||||
[node name="PatientFile" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer"]
|
||||
[node name="FileContainer" type="VBoxContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Control" type="Control" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="PatientFileTitle" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 0.9
|
||||
theme_override_fonts/normal_font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/normal_font_size = 20
|
||||
bbcode_enabled = true
|
||||
text = "PATIENT FILE 564
|
||||
|
||||
|
||||
|
||||
Name: ORLEG, Vladislav
|
||||
|
||||
|
||||
Age: 47
|
||||
|
||||
|
||||
Profession: Gardener
|
||||
|
||||
|
||||
Admission reason:
|
||||
|
||||
Delirium with behavioral disturbances
|
||||
Verbal agression
|
||||
Homicidal threats
|
||||
|
||||
|
||||
|
||||
text = "
|
||||
"
|
||||
|
||||
[node name="Control2" type="Control" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="PatientFile" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/FileContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 6.0
|
||||
theme_override_fonts/normal_font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/normal_font_size = 20
|
||||
bbcode_enabled = true
|
||||
|
||||
[node name="Rules" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
theme_override_fonts/normal_font = ExtResource("4_uvrsh")
|
||||
theme_override_fonts/italics_font = ExtResource("5_sybh5")
|
||||
@@ -150,29 +154,59 @@ text = "
|
||||
|
||||
|
||||
|
||||
THE REPUBLIC SHELTERS"
|
||||
[i]THE REPUBLIC SHELTERS[/i]"
|
||||
|
||||
[node name="AssessmentRecord" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer"]
|
||||
[node name="RecordingContainer" type="VBoxContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/RecordingContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="Control" type="Control" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/RecordingContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="RecordTitle" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/RecordingContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 1.4
|
||||
theme_override_fonts/normal_font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/normal_font_size = 20
|
||||
bbcode_enabled = true
|
||||
text = "
|
||||
PATIENT RECORDING #564"
|
||||
|
||||
[node name="Control2" type="Control" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/RecordingContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="Recording" type="RichTextLabel" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer/PanelContainer/MarginContainer/RecordingContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 6.0
|
||||
theme_override_fonts/normal_font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/normal_font_size = 20
|
||||
bbcode_enabled = true
|
||||
text = "RECORDING"
|
||||
|
||||
[node name="FaceZoom" type="TextureRect" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/FaceMarginContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
size_flags_stretch_ratio = 2.0
|
||||
texture = ExtResource("4_ronmq")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ControlsMarginContainer" type="MarginContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
theme_override_constants/margin_left = 10
|
||||
theme_override_constants/margin_top = 10
|
||||
theme_override_constants/margin_right = 10
|
||||
theme_override_constants/margin_bottom = 0
|
||||
|
||||
[node name="Alone" type="GridContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
@@ -182,7 +216,7 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Next Patient's File"
|
||||
text = "NEXT PATIENT FILE"
|
||||
|
||||
[node name="Guidebook" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Alone"]
|
||||
layout_mode = 2
|
||||
@@ -190,35 +224,27 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Guidebook"
|
||||
text = "GUIDEBOOK"
|
||||
|
||||
[node name="CallInNextPatient" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Alone"]
|
||||
[node name="CallNextPatient" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Alone"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Call In Next Patient"
|
||||
text = "CALL NEXT PATIENT"
|
||||
|
||||
[node name="Patient" type="GridContainer" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer"]
|
||||
layout_mode = 2
|
||||
columns = 2
|
||||
|
||||
[node name="PatientFile" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Patient's File"
|
||||
|
||||
[node name="Examine" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Examine"
|
||||
text = "EXAMINE"
|
||||
|
||||
[node name="Guidebook" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
@@ -226,15 +252,23 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Guidebook"
|
||||
text = "GUIDEBOOK"
|
||||
|
||||
[node name="AssessmentRecord" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
[node name="PatientFile" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Assessment Record"
|
||||
text = "PATIENT FILE"
|
||||
|
||||
[node name="PatientRecording" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "PATIENT RECORDING"
|
||||
|
||||
[node name="Containment" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
@@ -242,7 +276,7 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Send to Containment"
|
||||
text = "SEND TO CONTAINMENT"
|
||||
|
||||
[node name="PsychWard" type="Button" parent="Background/HBoxContainer/MarginContainer/VBoxContainer/ControlsMarginContainer/Patient"]
|
||||
layout_mode = 2
|
||||
@@ -250,7 +284,7 @@ size_flags_horizontal = 3
|
||||
size_flags_vertical = 3
|
||||
theme_override_fonts/font = ExtResource("4_uvrsh")
|
||||
theme_override_font_sizes/font_size = 25
|
||||
text = "Send to Psych Ward"
|
||||
text = "SEND TO PSYCH WARD"
|
||||
|
||||
[node name="LowerBorder" type="TextureRect" parent="Background"]
|
||||
layout_mode = 2
|
||||
|
||||
@@ -33,16 +33,6 @@ offset_top = 63.0
|
||||
offset_right = 1877.0
|
||||
offset_bottom = 148.0
|
||||
|
||||
[node name="Notebook" type="Button" parent="UI/UpperContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_cohu5")
|
||||
theme_override_font_sizes/font_size = 30
|
||||
text = " Notebook "
|
||||
|
||||
[node name="Separator" type="Control" parent="UI/UpperContainer"]
|
||||
custom_minimum_size = Vector2(20, 0)
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Menu" type="Button" parent="UI/UpperContainer"]
|
||||
layout_mode = 2
|
||||
theme_override_fonts/font = ExtResource("2_cohu5")
|
||||
|
||||
Reference in New Issue
Block a user