Expand CCS patient history

This commit is contained in:
hz
2026-08-09 23:59:28 -05:00
parent d349998d12
commit 33b55753cb
8 changed files with 306 additions and 75 deletions
+80 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3]
[gd_scene load_steps=13 format=3]
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/doctor/office-backdrop.png" id="1_backdrop"]
[ext_resource type="Script" path="res://scripts/ui/ccs_cases_2/doctor_office.gd" id="2_script"]
@@ -10,6 +10,7 @@
[ext_resource type="Texture2D" path="res://assets/icons/lucide/monitor.svg" id="8_monitor"]
[ext_resource type="Texture2D" path="res://assets/icons/lucide/x.svg" id="9_close"]
[ext_resource type="Texture2D" path="res://assets/icons/lucide/heart-pulse.svg" id="10_vitals"]
[ext_resource type="Texture2D" path="res://assets/icons/lucide/clipboard-list.svg" id="11_history"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_patient_fit"]
shader = ExtResource("5_patient_fit")
@@ -287,6 +288,20 @@ expand_icon = true
text = "Vitals"
vertical_icon_alignment = 0
[node name="MedicalHistoryLauncher" type="Button" parent="ComputerOverlay"]
layout_mode = 0
offset_left = 166.0
offset_top = 32.0
offset_right = 342.0
offset_bottom = 142.0
mouse_default_cursor_shape = 2
tooltip_text = "View medical history"
icon = ExtResource("11_history")
icon_max_width = 48
expand_icon = true
text = "Medical History"
vertical_icon_alignment = 0
[node name="VitalsWindow" type="PanelContainer" parent="ComputerOverlay"]
visible = false
z_index = 2
@@ -353,6 +368,70 @@ text = "No nurse vital signs are available."
horizontal_alignment = 1
vertical_alignment = 1
[node name="MedicalHistoryWindow" type="PanelContainer" parent="ComputerOverlay"]
visible = false
z_index = 2
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -330.0
offset_top = -210.0
offset_right = 330.0
offset_bottom = 210.0
grow_horizontal = 2
grow_vertical = 2
[node name="Margin" type="MarginContainer" parent="ComputerOverlay/MedicalHistoryWindow"]
layout_mode = 2
theme_override_constants/margin_left = 32
theme_override_constants/margin_top = 24
theme_override_constants/margin_right = 32
theme_override_constants/margin_bottom = 28
[node name="Content" type="VBoxContainer" parent="ComputerOverlay/MedicalHistoryWindow/Margin"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="Header" type="HBoxContainer" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content"]
layout_mode = 2
mouse_default_cursor_shape = 13
[node name="Title" type="Label" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content/Header"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 30
text = "Medical History"
vertical_alignment = 1
[node name="Close" type="Button" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content/Header"]
custom_minimum_size = Vector2(48, 48)
layout_mode = 2
mouse_default_cursor_shape = 2
tooltip_text = "Close medical history"
icon = ExtResource("9_close")
icon_max_width = 24
expand_icon = true
[node name="Divider" type="HSeparator" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content"]
layout_mode = 2
[node name="SectionTitle" type="Label" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content"]
layout_mode = 2
theme_override_colors/font_color = Color(0.18, 0.25, 0.31, 1)
theme_override_font_sizes/font_size = 20
text = "Past Medical History"
[node name="Text" type="Label" parent="ComputerOverlay/MedicalHistoryWindow/Margin/Content"]
layout_mode = 2
size_flags_vertical = 3
theme_override_colors/font_color = Color(0.04, 0.09, 0.13, 1)
theme_override_font_sizes/font_size = 22
text = "No past medical history is available."
autowrap_mode = 3
[node name="Close" type="Button" parent="ComputerOverlay"]
layout_mode = 1
anchors_preset = 1