Add CCS computer vitals app

This commit is contained in:
hz
2026-08-07 22:44:30 -05:00
parent 2b25e25424
commit 065db96211
4 changed files with 249 additions and 10 deletions
+81 -1
View File
@@ -1,4 +1,4 @@
[gd_scene load_steps=11 format=3]
[gd_scene load_steps=12 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"]
@@ -9,6 +9,7 @@
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/computer/computer-base.png" id="7_computer"]
[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"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_patient_fit"]
shader = ExtResource("5_patient_fit")
@@ -272,6 +273,85 @@ texture = ExtResource("7_computer")
expand_mode = 1
stretch_mode = 0
[node name="VitalsLauncher" type="Button" parent="ComputerOverlay"]
layout_mode = 0
offset_left = 30.0
offset_top = 32.0
offset_right = 150.0
offset_bottom = 142.0
mouse_default_cursor_shape = 2
tooltip_text = "View nurse vital signs"
icon = ExtResource("10_vitals")
icon_max_width = 48
expand_icon = true
text = "Vitals"
vertical_icon_alignment = 0
[node name="VitalsWindow" 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 = -360.0
offset_top = -270.0
offset_right = 360.0
offset_bottom = 270.0
grow_horizontal = 2
grow_vertical = 2
[node name="Margin" type="MarginContainer" parent="ComputerOverlay/VitalsWindow"]
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/VitalsWindow/Margin"]
layout_mode = 2
theme_override_constants/separation = 20
[node name="Header" type="HBoxContainer" parent="ComputerOverlay/VitalsWindow/Margin/Content"]
layout_mode = 2
[node name="Title" type="Label" parent="ComputerOverlay/VitalsWindow/Margin/Content/Header"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 30
text = "Nurse Vital Signs"
vertical_alignment = 1
[node name="Close" type="Button" parent="ComputerOverlay/VitalsWindow/Margin/Content/Header"]
custom_minimum_size = Vector2(48, 48)
layout_mode = 2
mouse_default_cursor_shape = 2
tooltip_text = "Close vital signs"
icon = ExtResource("9_close")
icon_max_width = 24
expand_icon = true
[node name="Divider" type="HSeparator" parent="ComputerOverlay/VitalsWindow/Margin/Content"]
layout_mode = 2
[node name="Rows" type="GridContainer" parent="ComputerOverlay/VitalsWindow/Margin/Content"]
layout_mode = 2
size_flags_vertical = 3
theme_override_constants/h_separation = 40
theme_override_constants/v_separation = 12
columns = 2
[node name="Empty" type="Label" parent="ComputerOverlay/VitalsWindow/Margin/Content"]
visible = false
layout_mode = 2
size_flags_vertical = 3
theme_override_font_sizes/font_size = 20
text = "No nurse vital signs are available."
horizontal_alignment = 1
vertical_alignment = 1
[node name="Close" type="Button" parent="ComputerOverlay"]
layout_mode = 1
anchors_preset = 1