Add graphical CCS Cases 2 prototype
This commit is contained in:
@@ -0,0 +1,158 @@
|
||||
[gd_scene load_steps=8 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"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/doctor/clock.png" id="3_face"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/doctor/patient-44-white-male.png" id="4_patient"]
|
||||
[ext_resource type="Shader" path="res://shaders/ccs_cases_2/patient_idle.gdshader" id="5_patient_fit"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/doctor/chat-bubble.png" id="6_chat_bubble"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_patient_fit"]
|
||||
shader = ExtResource("5_patient_fit")
|
||||
shader_parameter/patient_scale = 0.82
|
||||
shader_parameter/anchor = Vector2(0.5, 0.985)
|
||||
shader_parameter/patient_offset = Vector2(0, 0)
|
||||
shader_parameter/breathing_speed = 1.0
|
||||
shader_parameter/breathing_amount = 0.012
|
||||
shader_parameter/blink_amount = 0.0
|
||||
|
||||
[node name="DoctorScene" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("2_script")
|
||||
|
||||
[node name="Backdrop" type="TextureRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("1_backdrop")
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
|
||||
[node name="Patient" type="TextureRect" parent="."]
|
||||
material = SubResource("ShaderMaterial_patient_fit")
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("4_patient")
|
||||
expand_mode = 1
|
||||
stretch_mode = 6
|
||||
metadata/age = 44
|
||||
metadata/sex = "male"
|
||||
metadata/ethnicity = "white"
|
||||
metadata/demographic_label = "44-year-old white male"
|
||||
|
||||
[node name="ClockMount" type="Control" parent="."]
|
||||
z_index = 10
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
scale = Vector2(0.75, 0.75)
|
||||
anchor_left = 0.695
|
||||
anchor_top = 0.145
|
||||
anchor_right = 0.695
|
||||
anchor_bottom = 0.145
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Face" type="Sprite2D" parent="ClockMount"]
|
||||
position = Vector2(0, 1.2)
|
||||
scale = Vector2(0.095, 0.095)
|
||||
texture = ExtResource("3_face")
|
||||
|
||||
[node name="HourHand" type="Node2D" parent="ClockMount"]
|
||||
|
||||
[node name="Shape" type="Polygon2D" parent="ClockMount/HourHand"]
|
||||
polygon = PackedVector2Array(-3.2, 5, -2.5, -23, 0, -29, 2.5, -23, 3.2, 5)
|
||||
color = Color(0.035, 0.055, 0.08, 1)
|
||||
antialiased = true
|
||||
|
||||
[node name="MinuteHand" type="Node2D" parent="ClockMount"]
|
||||
|
||||
[node name="Shape" type="Polygon2D" parent="ClockMount/MinuteHand"]
|
||||
polygon = PackedVector2Array(-2.4, 6, -1.7, -34, 0, -40, 1.7, -34, 2.4, 6)
|
||||
color = Color(0.035, 0.055, 0.08, 1)
|
||||
antialiased = true
|
||||
|
||||
[node name="SecondHand" type="Node2D" parent="ClockMount"]
|
||||
|
||||
[node name="Shape" type="Polygon2D" parent="ClockMount/SecondHand"]
|
||||
polygon = PackedVector2Array(-0.9, 8, -0.8, -38, 0, -43, 0.8, -38, 0.9, 8)
|
||||
color = Color(0.55, 0.09, 0.065, 1)
|
||||
antialiased = true
|
||||
|
||||
[node name="CenterCap" type="Polygon2D" parent="ClockMount"]
|
||||
polygon = PackedVector2Array(3.8, 0, 3.29, 1.9, 1.9, 3.29, 0, 3.8, -1.9, 3.29, -3.29, 1.9, -3.8, 0, -3.29, -1.9, -1.9, -3.29, 0, -3.8, 1.9, -3.29, 3.29, -1.9)
|
||||
color = Color(0.04, 0.055, 0.075, 1)
|
||||
antialiased = true
|
||||
|
||||
[node name="CenterPin" type="Polygon2D" parent="ClockMount"]
|
||||
polygon = PackedVector2Array(1.8, 0, 1.27, 1.27, 0, 1.8, -1.27, 1.27, -1.8, 0, -1.27, -1.27, 0, -1.8, 1.27, -1.27)
|
||||
color = Color(0.9, 0.64, 0.19, 1)
|
||||
antialiased = true
|
||||
|
||||
[node name="DialogueBubble" type="Control" parent="."]
|
||||
z_index = 30
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
anchor_left = 0.51
|
||||
anchor_top = 0.055
|
||||
anchor_right = 0.51
|
||||
anchor_bottom = 0.055
|
||||
offset_right = 420.0
|
||||
offset_bottom = 140.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Background" type="TextureRect" parent="DialogueBubble"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
mouse_filter = 2
|
||||
self_modulate = Color(0.92, 0.89, 0.82, 0.86)
|
||||
texture = ExtResource("6_chat_bubble")
|
||||
expand_mode = 1
|
||||
stretch_mode = 0
|
||||
|
||||
[node name="Text" type="Label" parent="DialogueBubble"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 76.0
|
||||
offset_top = 31.0
|
||||
offset_right = -48.0
|
||||
offset_bottom = -43.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_colors/font_color = Color(0.055, 0.105, 0.145, 1)
|
||||
theme_override_font_sizes/font_size = 22
|
||||
text = "Hello, doctor."
|
||||
autowrap_mode = 2
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="DialogueChoices" type="VBoxContainer" parent="."]
|
||||
z_index = 29
|
||||
layout_mode = 1
|
||||
anchors_preset = 0
|
||||
anchor_left = 0.5
|
||||
anchor_top = 1.0
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 1.0
|
||||
offset_left = -210.0
|
||||
offset_top = -206.0
|
||||
offset_right = 210.0
|
||||
offset_bottom = -4.0
|
||||
theme_override_constants/separation = -8
|
||||
@@ -0,0 +1,319 @@
|
||||
[gd_scene format=3 uid="uid://bq3huk364skd3"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/ui/ccs_cases_2/slot_machine.gd" id="1_qtu10"]
|
||||
[ext_resource type="Shader" path="res://shaders/ccs_cases_2/reel_spin.gdshader" id="2_ee4bf"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/slot/symbols.png" id="3_ee4bf"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/slot/numbers.png" id="3_kbped"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/slot/reel-frame.png" id="4_reel_bg"]
|
||||
[ext_resource type="Texture2D" path="res://assets/ccs_cases_2/images/slot/lever-sprite-sheet.png" id="6_lever_sheet"]
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bvwqe"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_ee4bf")
|
||||
shader_parameter/n_rows = 6.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fj5cn"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_ee4bf")
|
||||
shader_parameter/n_rows = 6.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_iy58a"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_ee4bf")
|
||||
shader_parameter/n_rows = 6.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
shader_parameter/x_offset = -0.018
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_6a6wx"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_kbped")
|
||||
shader_parameter/n_rows = 10.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ee4bf"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_kbped")
|
||||
shader_parameter/n_rows = 10.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_kbped"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_kbped")
|
||||
shader_parameter/n_rows = 10.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_sky72"]
|
||||
shader = ExtResource("2_ee4bf")
|
||||
shader_parameter/tex = ExtResource("3_kbped")
|
||||
shader_parameter/n_rows = 10.0
|
||||
shader_parameter/y_offset = 0.0
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_reel_divider"]
|
||||
atlas = ExtResource("4_reel_bg")
|
||||
region = Rect2(24, 72, 56, 880)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_smooth_top"]
|
||||
atlas = ExtResource("4_reel_bg")
|
||||
region = Rect2(100, 26, 824, 44)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_smooth_bottom"]
|
||||
atlas = ExtResource("4_reel_bg")
|
||||
region = Rect2(100, 954, 824, 44)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lever_0"]
|
||||
atlas = ExtResource("6_lever_sheet")
|
||||
region = Rect2(0, 0, 307, 1024)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lever_1"]
|
||||
atlas = ExtResource("6_lever_sheet")
|
||||
region = Rect2(307, 0, 307, 1024)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lever_2"]
|
||||
atlas = ExtResource("6_lever_sheet")
|
||||
region = Rect2(614, 0, 307, 1024)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lever_3"]
|
||||
atlas = ExtResource("6_lever_sheet")
|
||||
region = Rect2(921, 0, 307, 1024)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lever_4"]
|
||||
atlas = ExtResource("6_lever_sheet")
|
||||
region = Rect2(1228, 0, 308, 1024)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_lever"]
|
||||
animations = [{
|
||||
"frames": [{"duration": 1.0, "texture": SubResource("AtlasTexture_lever_0")}, {"duration": 1.0, "texture": SubResource("AtlasTexture_lever_1")}, {"duration": 1.0, "texture": SubResource("AtlasTexture_lever_2")}, {"duration": 1.0, "texture": SubResource("AtlasTexture_lever_3")}, {"duration": 1.0, "texture": SubResource("AtlasTexture_lever_4")}],
|
||||
"loop": false,
|
||||
"name": &"pull",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="Control" type="Control" unique_id=1279508523 node_paths=PackedStringArray("icon_reels", "number_reels")]
|
||||
layout_mode = 3
|
||||
anchors_preset = 0
|
||||
offset_right = 1500.0
|
||||
offset_bottom = 800.0
|
||||
script = ExtResource("1_qtu10")
|
||||
icon_reels = [NodePath("Spinner1"), NodePath("Spinner2"), NodePath("Spinner3")]
|
||||
number_reels = [NodePath("Numbers1"), NodePath("Numbers2"), NodePath("Numbers3"), NodePath("Numbers4")]
|
||||
|
||||
[node name="ReelBackground1" type="TextureRect" parent="."]
|
||||
z_index = -2
|
||||
layout_mode = 0
|
||||
offset_left = 315.0
|
||||
offset_top = 276.0
|
||||
offset_right = 646.0
|
||||
offset_bottom = 607.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("4_reel_bg")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ReelBackground2" type="TextureRect" parent="."]
|
||||
z_index = -2
|
||||
layout_mode = 0
|
||||
offset_left = 594.0
|
||||
offset_top = 276.0
|
||||
offset_right = 925.0
|
||||
offset_bottom = 607.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("4_reel_bg")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ReelBackground3" type="TextureRect" parent="."]
|
||||
z_index = -2
|
||||
layout_mode = 0
|
||||
offset_left = 873.0
|
||||
offset_top = 276.0
|
||||
offset_right = 1204.0
|
||||
offset_bottom = 607.0
|
||||
mouse_filter = 2
|
||||
texture = ExtResource("4_reel_bg")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ReelWhite1" type="ColorRect" parent="."]
|
||||
z_index = -1
|
||||
layout_mode = 0
|
||||
offset_left = 341.0
|
||||
offset_top = 301.0
|
||||
offset_right = 620.0
|
||||
offset_bottom = 580.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="ReelWhite2" type="ColorRect" parent="."]
|
||||
z_index = -1
|
||||
layout_mode = 0
|
||||
offset_left = 620.0
|
||||
offset_top = 301.0
|
||||
offset_right = 899.0
|
||||
offset_bottom = 580.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="ReelWhite3" type="ColorRect" parent="."]
|
||||
z_index = -1
|
||||
layout_mode = 0
|
||||
offset_left = 899.0
|
||||
offset_top = 301.0
|
||||
offset_right = 1178.0
|
||||
offset_bottom = 580.0
|
||||
mouse_filter = 2
|
||||
|
||||
[node name="Spinner1" type="ColorRect" parent="." unique_id=813668141]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_bvwqe")
|
||||
layout_mode = 0
|
||||
offset_left = 341.0
|
||||
offset_top = 301.0
|
||||
offset_right = 620.0
|
||||
offset_bottom = 580.0
|
||||
|
||||
[node name="Spinner2" type="ColorRect" parent="." unique_id=203022686]
|
||||
material = SubResource("ShaderMaterial_fj5cn")
|
||||
layout_mode = 0
|
||||
offset_left = 620.0
|
||||
offset_top = 301.0
|
||||
offset_right = 899.0
|
||||
offset_bottom = 580.0
|
||||
|
||||
[node name="Spinner3" type="ColorRect" parent="." unique_id=409654364]
|
||||
material = SubResource("ShaderMaterial_iy58a")
|
||||
layout_mode = 0
|
||||
offset_left = 899.0
|
||||
offset_top = 301.0
|
||||
offset_right = 1178.0
|
||||
offset_bottom = 580.0
|
||||
|
||||
[node name="MiddleReelLeftDivider" type="TextureRect" parent="."]
|
||||
z_index = 1
|
||||
layout_mode = 0
|
||||
offset_left = 610.0
|
||||
offset_top = 301.0
|
||||
offset_right = 630.0
|
||||
offset_bottom = 580.0
|
||||
mouse_filter = 2
|
||||
texture = SubResource("AtlasTexture_reel_divider")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="MiddleReelRightDivider" type="TextureRect" parent="."]
|
||||
z_index = 1
|
||||
layout_mode = 0
|
||||
offset_left = 889.0
|
||||
offset_top = 301.0
|
||||
offset_right = 909.0
|
||||
offset_bottom = 580.0
|
||||
mouse_filter = 2
|
||||
texture = SubResource("AtlasTexture_reel_divider")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ContinuousTopTrim" type="TextureRect" parent="."]
|
||||
z_index = 2
|
||||
layout_mode = 0
|
||||
offset_left = 323.0
|
||||
offset_top = 276.0
|
||||
offset_right = 1196.0
|
||||
offset_bottom = 301.0
|
||||
mouse_filter = 2
|
||||
texture = SubResource("AtlasTexture_smooth_top")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="ContinuousBottomTrim" type="TextureRect" parent="."]
|
||||
z_index = 2
|
||||
layout_mode = 0
|
||||
offset_left = 323.0
|
||||
offset_top = 580.0
|
||||
offset_right = 1196.0
|
||||
offset_bottom = 607.0
|
||||
mouse_filter = 2
|
||||
texture = SubResource("AtlasTexture_smooth_bottom")
|
||||
expand_mode = 1
|
||||
|
||||
[node name="LeverPivot" type="Node2D" parent="."]
|
||||
z_index = 5
|
||||
position = Vector2(1202, 592)
|
||||
|
||||
[node name="LeverSprite" type="AnimatedSprite2D" parent="LeverPivot"]
|
||||
position = Vector2(19, -105)
|
||||
scale = Vector2(0.8, 0.8)
|
||||
sprite_frames = SubResource("SpriteFrames_lever")
|
||||
animation = &"pull"
|
||||
|
||||
[node name="LeverButton" type="Button" parent="."]
|
||||
z_index = 6
|
||||
layout_mode = 0
|
||||
offset_left = 1107.0
|
||||
offset_top = 257.0
|
||||
offset_right = 1287.0
|
||||
offset_bottom = 602.0
|
||||
mouse_default_cursor_shape = 2
|
||||
focus_mode = 0
|
||||
self_modulate = Color(1, 1, 1, 0)
|
||||
flat = true
|
||||
tooltip_text = "Pull lever"
|
||||
|
||||
[node name="Numbers1" type="ColorRect" parent="." unique_id=2125838097]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_6a6wx")
|
||||
layout_mode = 0
|
||||
offset_left = 1092.0
|
||||
offset_top = 110.0
|
||||
offset_right = 1167.0
|
||||
offset_bottom = 185.0
|
||||
|
||||
[node name="Numbers2" type="ColorRect" parent="." unique_id=1145238072]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_ee4bf")
|
||||
layout_mode = 0
|
||||
offset_left = 1171.0
|
||||
offset_top = 110.0
|
||||
offset_right = 1246.0
|
||||
offset_bottom = 185.0
|
||||
|
||||
[node name="Numbers3" type="ColorRect" parent="." unique_id=1321048024]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_kbped")
|
||||
layout_mode = 0
|
||||
offset_left = 1250.0
|
||||
offset_top = 110.0
|
||||
offset_right = 1325.0
|
||||
offset_bottom = 185.0
|
||||
|
||||
[node name="Numbers4" type="ColorRect" parent="." unique_id=1865653938]
|
||||
texture_filter = 2
|
||||
material = SubResource("ShaderMaterial_sky72")
|
||||
layout_mode = 0
|
||||
offset_left = 1329.0
|
||||
offset_top = 110.0
|
||||
offset_right = 1404.0
|
||||
offset_bottom = 185.0
|
||||
|
||||
[node name="TestCounterButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 1092.0
|
||||
offset_top = 202.0
|
||||
offset_right = 1353.0
|
||||
offset_bottom = 252.0
|
||||
text = "Test Counter Setting"
|
||||
|
||||
[node name="ContinueButton" type="Button" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 400.0
|
||||
offset_top = 110.0
|
||||
offset_right = 620.0
|
||||
offset_bottom = 160.0
|
||||
mouse_default_cursor_shape = 2
|
||||
text = "Continue"
|
||||
|
||||
[node name="SpinResultLabel" type="Label" parent="."]
|
||||
layout_mode = 0
|
||||
offset_left = 683.0
|
||||
offset_top = 744.0
|
||||
offset_right = 913.0
|
||||
offset_bottom = 784.0
|
||||
text = "Ready"
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[connection signal="pressed" from="LeverButton" to="." method="pull_lever"]
|
||||
[connection signal="pressed" from="TestCounterButton" to="." method="test_counter_setting"]
|
||||
[connection signal="pressed" from="ContinueButton" to="." method="go_to_doctor_scene"]
|
||||
Reference in New Issue
Block a user