431 lines
14 KiB
Plaintext
431 lines
14 KiB
Plaintext
[gd_scene format=3 uid="uid://b2tyfgkroe0d8"]
|
|
|
|
[ext_resource type="Script" uid="uid://da5sp508nk1tx" path="res://scripts/ingame_hud.gd" id="1_hud_script"]
|
|
[ext_resource type="FontFile" uid="uid://bajcvmidrnc33" path="res://assets/fonts/standard_font.png" id="2_standard_font"]
|
|
[ext_resource type="Texture2D" uid="uid://dkisxs8ecfaul" path="res://assets/gfx/ui/hearts_filled.png" id="4_hearts_filled"]
|
|
[ext_resource type="Script" uid="uid://5hepk3l8u2eg" path="res://scripts/mobile_input.gd" id="5_44yxk"]
|
|
[ext_resource type="Script" uid="uid://dhn1uax7qtt1v" path="res://addons/virtual_joystick/virtual_joystick.gd" id="5_i0hld"]
|
|
[ext_resource type="Texture2D" uid="uid://dkpritx47nd4m" path="res://assets/gfx/pickups/items_n_shit.png" id="5_key_texture"]
|
|
[ext_resource type="Texture2D" uid="uid://01qhightlcso" path="res://addons/virtual_joystick/resources/textures/joystick_texture_5.png" id="6_yeruy"]
|
|
[ext_resource type="Texture2D" uid="uid://dywm4x5vqdtsm" path="res://addons/virtual_joystick/resources/textures/stick_texture_5.png" id="7_44yxk"]
|
|
[ext_resource type="Script" uid="uid://bh5a3ydiu51eo" path="res://addons/touchscreenbuttoncontrol/TouchScreenButtonControl.gd" id="8_cu5yl"]
|
|
[ext_resource type="StyleBox" uid="uid://cv5o175a2677e" path="res://addons/touchscreenbuttoncontrol/button_style.tres" id="8_yeruy"]
|
|
|
|
[sub_resource type="Theme" id="Theme_standard_font"]
|
|
default_font = ExtResource("2_standard_font")
|
|
default_font_size = 10
|
|
|
|
[sub_resource type="AtlasTexture" id="AtlasTexture_kmtic"]
|
|
atlas = ExtResource("5_key_texture")
|
|
region = Rect2(160, 208, 16, 16)
|
|
margin = Rect2(0, -2, 0, 0)
|
|
|
|
[node name="IngameHUD" type="CanvasLayer" unique_id=846985801]
|
|
layer = 201
|
|
script = ExtResource("1_hud_script")
|
|
|
|
[node name="UpperLeft" type="MarginContainer" parent="." unique_id=22752255]
|
|
offset_right = 392.0
|
|
offset_bottom = 92.0
|
|
theme = SubResource("Theme_standard_font")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="UpperLeft" unique_id=339113149]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainerLIFE" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1514994213]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelLife" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLIFE" unique_id=540685001]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "- LIFE -"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="TextureProgressBarHP" type="TextureProgressBar" parent="UpperLeft/HBoxContainer/VBoxContainerLIFE" unique_id=883573502]
|
|
layout_mode = 2
|
|
value = 100.0
|
|
texture_progress = ExtResource("4_hearts_filled")
|
|
|
|
[node name="VBoxContainerKeys" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1905937328]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelKeys" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys" unique_id=869912308]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "- KEYS -"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="UpperLeft/HBoxContainer/VBoxContainerKeys" unique_id=869912309]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
|
|
[node name="TextureRectKey" type="TextureRect" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=869912310]
|
|
layout_mode = 2
|
|
texture = SubResource("AtlasTexture_kmtic")
|
|
stretch_mode = 5
|
|
|
|
[node name="LabelXKeys" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=894452940]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "x"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelKeysValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerKeys/HBoxContainer" unique_id=1691789757]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "0"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="VBoxContainerLevel" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=1905937327]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelLevel" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLevel" unique_id=869912307]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "LEVEL"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelLevelValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerLevel" unique_id=1691789756]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "1"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="VBoxContainerTime" type="VBoxContainer" parent="UpperLeft/HBoxContainer" unique_id=2142702105]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelTime" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerTime" unique_id=793107824]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "TIME"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelTimeValue" type="Label" parent="UpperLeft/HBoxContainer/VBoxContainerTime" unique_id=697137942]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "00:00"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="UpperRight" type="MarginContainer" parent="." unique_id=1261821969]
|
|
anchors_preset = 1
|
|
anchor_left = 1.0
|
|
anchor_right = 1.0
|
|
offset_left = -392.0
|
|
offset_bottom = 92.0
|
|
grow_horizontal = 0
|
|
theme = SubResource("Theme_standard_font")
|
|
|
|
[node name="HBoxContainer" type="HBoxContainer" parent="UpperRight" unique_id=332290975]
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainerHost" type="VBoxContainer" parent="UpperRight/HBoxContainer" unique_id=1933444958]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelHost" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerHost" unique_id=1807484687]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "HOST"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelPlayerCount" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerHost" unique_id=1807484688]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "Players: 1"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelRoomCode" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerHost" unique_id=1807484689]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
horizontal_alignment = 1
|
|
|
|
[node name="VBoxContainerConnectionStatus" type="VBoxContainer" parent="UpperRight/HBoxContainer" unique_id=1933444960]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelConnectionStatus" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerConnectionStatus" unique_id=1933444961]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "CONNECTION"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelMatchboxStatus" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerConnectionStatus" unique_id=1933444962]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "Matchbox: --"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelICEStatus" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerConnectionStatus" unique_id=1933444963]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "ICE: --"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="LabelDataChannelsStatus" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerConnectionStatus" unique_id=1933444964]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "Data: --"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="VBoxContainerBoss" type="VBoxContainer" parent="UpperRight/HBoxContainer" unique_id=1933444957]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="LabelBoss" type="Label" parent="UpperRight/HBoxContainer/VBoxContainerBoss" unique_id=1807484686]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "BOSS"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="TextureProgressBarBossHP" type="TextureProgressBar" parent="UpperRight/HBoxContainer/VBoxContainerBoss" unique_id=1266602557]
|
|
layout_mode = 2
|
|
texture_progress = ExtResource("4_hearts_filled")
|
|
|
|
[node name="CenterBottom" type="MarginContainer" parent="."]
|
|
anchors_preset = 7
|
|
anchor_left = 0.0
|
|
anchor_top = 1.0
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 20.0
|
|
offset_top = -80.0
|
|
offset_right = -20.0
|
|
offset_bottom = 0.0
|
|
offset_bottom = -8.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 0
|
|
theme = SubResource("Theme_standard_font")
|
|
|
|
[node name="VBoxBoss" type="VBoxContainer" parent="CenterBottom"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/separation = 4
|
|
|
|
[node name="LabelBossCenter" type="Label" parent="CenterBottom/VBoxBoss"]
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "BOSS"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="ProgressBarBossHP" type="ProgressBar" parent="CenterBottom/VBoxBoss"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
custom_minimum_size = Vector2(0, 24)
|
|
max_value = 400.0
|
|
value = 400.0
|
|
show_percentage = false
|
|
|
|
[node name="CenterTop" type="MarginContainer" parent="." unique_id=22752256]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -150.0
|
|
offset_top = 8.0
|
|
offset_right = 150.0
|
|
offset_bottom = 28.0
|
|
grow_horizontal = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
|
|
[node name="LabelDisconnected" type="Label" parent="CenterTop" unique_id=1260056884]
|
|
visible = false
|
|
layout_mode = 2
|
|
theme = SubResource("Theme_standard_font")
|
|
text = "Disconnected - Reconnecting..."
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="MobileInput" type="Control" parent="." unique_id=1373461519]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
script = ExtResource("5_44yxk")
|
|
|
|
[node name="VirtualJoystick" type="Control" parent="MobileInput" unique_id=1151061008]
|
|
z_index = 4096
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 48.0
|
|
offset_top = -114.0
|
|
offset_right = 250.0
|
|
offset_bottom = 88.0
|
|
grow_vertical = 2
|
|
pivot_offset = Vector2(101, 101)
|
|
script = ExtResource("5_i0hld")
|
|
joystick_texture = ExtResource("6_yeruy")
|
|
joystick_opacity = 0.235
|
|
stick_texture = ExtResource("7_44yxk")
|
|
stick_opacity = 0.746
|
|
metadata/_custom_type_script = "uid://dhn1uax7qtt1v"
|
|
|
|
[node name="Control" type="Control" parent="MobileInput" unique_id=131649841]
|
|
layout_mode = 1
|
|
anchors_preset = 6
|
|
anchor_left = 1.0
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = -320.0
|
|
offset_top = -160.0
|
|
offset_bottom = 160.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="MobileInput/Control" unique_id=710364056]
|
|
layout_mode = 1
|
|
anchors_preset = 6
|
|
anchor_left = 1.0
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = -320.0
|
|
offset_top = -160.0
|
|
offset_bottom = 160.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_right = 0
|
|
|
|
[node name="B_ButtonContainer" type="Control" parent="MobileInput/Control/MarginContainer" unique_id=297390115]
|
|
layout_mode = 2
|
|
|
|
[node name="B_Circle" type="Panel" parent="MobileInput/Control/MarginContainer/B_ButtonContainer" unique_id=2138926309]
|
|
layout_mode = 1
|
|
anchors_preset = 4
|
|
anchor_top = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_top = -64.0
|
|
offset_right = 128.0
|
|
offset_bottom = 64.0
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = ExtResource("8_yeruy")
|
|
|
|
[node name="B_Label" type="Label" parent="MobileInput/Control/MarginContainer/B_ButtonContainer/B_Circle" unique_id=1440094044]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "B"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="TouchScreenButtonControl" type="TextureButton" parent="MobileInput/Control/MarginContainer/B_ButtonContainer/B_Circle" unique_id=1583063757]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_mode = 0
|
|
mouse_filter = 2
|
|
action_mode = 0
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
script = ExtResource("8_cu5yl")
|
|
touchscreen_only = true
|
|
input_action = "attack"
|
|
metadata/_custom_type_script = "uid://bh5a3ydiu51eo"
|
|
|
|
[node name="A_ButtonContainer" type="Control" parent="MobileInput/Control/MarginContainer" unique_id=1039434657]
|
|
layout_mode = 2
|
|
|
|
[node name="A_Circle" type="Panel" parent="MobileInput/Control/MarginContainer/A_ButtonContainer" unique_id=1415076009]
|
|
layout_mode = 1
|
|
anchors_preset = 6
|
|
anchor_left = 1.0
|
|
anchor_top = 0.5
|
|
anchor_right = 1.0
|
|
anchor_bottom = 0.5
|
|
offset_left = -128.0
|
|
offset_top = -64.0
|
|
offset_bottom = 64.0
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = ExtResource("8_yeruy")
|
|
|
|
[node name="A_Label" type="Label" parent="MobileInput/Control/MarginContainer/A_ButtonContainer/A_Circle" unique_id=619215455]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "A"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="TouchScreenButtonControl" type="TextureButton" parent="MobileInput/Control/MarginContainer/A_ButtonContainer/A_Circle" unique_id=322194330]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_mode = 0
|
|
mouse_filter = 2
|
|
action_mode = 0
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
script = ExtResource("8_cu5yl")
|
|
touchscreen_only = true
|
|
input_action = "grab"
|
|
metadata/_custom_type_script = "uid://bh5a3ydiu51eo"
|
|
|
|
[node name="X_ButtonContainer" type="Control" parent="MobileInput/Control/MarginContainer" unique_id=1591990397]
|
|
layout_mode = 2
|
|
|
|
[node name="X_Circle" type="Panel" parent="MobileInput/Control/MarginContainer/X_ButtonContainer" unique_id=325379818]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -64.0
|
|
offset_right = 64.0
|
|
offset_bottom = 128.0
|
|
grow_horizontal = 2
|
|
theme_override_styles/panel = ExtResource("8_yeruy")
|
|
|
|
[node name="X_Label" type="Label" parent="MobileInput/Control/MarginContainer/X_ButtonContainer/X_Circle" unique_id=1443974385]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "X"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="TouchScreenButtonControl" type="TextureButton" parent="MobileInput/Control/MarginContainer/X_ButtonContainer/X_Circle" unique_id=1520840278]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
focus_mode = 0
|
|
mouse_filter = 2
|
|
action_mode = 0
|
|
ignore_texture_size = true
|
|
stretch_mode = 5
|
|
script = ExtResource("8_cu5yl")
|
|
touchscreen_only = true
|
|
input_action = "inventory"
|
|
metadata/_custom_type_script = "uid://bh5a3ydiu51eo"
|
|
|
|
[connection signal="analogic_changed" from="MobileInput/VirtualJoystick" to="MobileInput" method="_on_virtual_joystick_analogic_changed"]
|