Files
dungeon-divers/scenes/ui/hud.tscn
T
2026-01-16 15:53:55 -05:00

230 lines
5.5 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://cctw06lt2ffgb"]
[ext_resource type="Script" uid="uid://dis78b7f8x3j0" path="res://scripts/ui/hud.gd" id="1_hud"]
[ext_resource type="Script" uid="uid://ds8okf626rxye" path="res://addons/touch_screen_joystick/touch_screen_joystick.gd" id="2_hqnrr"]
[ext_resource type="Texture2D" uid="uid://7o1jec4i8enj" path="res://addons/touch_screen_joystick/mouseRing.png" id="3_8qguk"]
[ext_resource type="Texture2D" uid="uid://dhmh5yumt6ay5" path="res://addons/touch_screen_joystick/mouseBall.png" id="4_136eg"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_0mwgc"]
bg_color = Color(0.79607844, 0, 0, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_hqnrr"]
bg_color = Color(0, 0.011764706, 1, 1)
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_bo48s"]
bg_color = Color(1, 0.77254903, 0.11764706, 1)
[node name="Hud" type="CanvasLayer"]
layer = 5
visible = false
script = ExtResource("1_hud")
[node name="TopLeft" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = 10.0
offset_top = 10.0
offset_right = 200.0
offset_bottom = 100.0
[node name="HPBar" type="ProgressBar" parent="TopLeft"]
layout_mode = 0
offset_right = 180.0
offset_bottom = 24.0
theme_override_styles/fill = SubResource("StyleBoxFlat_0mwgc")
value = 100.0
show_percentage = false
[node name="Label" type="Label" parent="TopLeft/HPBar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "60/60"
horizontal_alignment = 1
vertical_alignment = 1
[node name="MPBar" type="ProgressBar" parent="TopLeft"]
layout_mode = 0
offset_top = 28.0
offset_right = 180.0
offset_bottom = 52.0
theme_override_styles/fill = SubResource("StyleBoxFlat_hqnrr")
value = 100.0
show_percentage = false
[node name="Label" type="Label" parent="TopLeft/MPBar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "28/28"
horizontal_alignment = 1
vertical_alignment = 1
[node name="STABar" type="ProgressBar" parent="TopLeft"]
layout_mode = 0
offset_top = 56.0
offset_right = 180.0
offset_bottom = 80.0
theme_override_styles/fill = SubResource("StyleBoxFlat_bo48s")
value = 100.0
show_percentage = false
[node name="Label" type="Label" parent="TopLeft/STABar"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "55/55"
horizontal_alignment = 1
vertical_alignment = 1
[node name="TopCenter" type="Control" parent="."]
layout_mode = 3
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -80.0
offset_top = 10.0
offset_right = 80.0
offset_bottom = 60.0
grow_horizontal = 2
[node name="DungeonInfo" type="VBoxContainer" parent="TopCenter"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="TierLabel" type="Label" parent="TopCenter/DungeonInfo"]
layout_mode = 2
text = "Tier 1"
horizontal_alignment = 1
[node name="MobsLabel" type="Label" parent="TopCenter/DungeonInfo"]
layout_mode = 2
text = "Mobs: 0"
horizontal_alignment = 1
[node name="TopRight" type="Control" parent="."]
layout_mode = 3
anchors_preset = 1
anchor_left = 1.0
anchor_right = 1.0
offset_left = -140.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = 140.0
grow_horizontal = 0
[node name="Minimap" type="Panel" parent="TopRight"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="MinimapTexture" type="TextureRect" parent="TopRight/Minimap"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 2.0
offset_top = 2.0
offset_right = -2.0
offset_bottom = -2.0
grow_horizontal = 2
grow_vertical = 2
stretch_mode = 5
[node name="EventLog" type="VBoxContainer" parent="TopRight"]
clip_contents = true
layout_mode = 0
offset_left = -42.0
offset_top = 134.0
offset_right = 133.0
offset_bottom = 434.0
[node name="BottomCenter" type="Control" parent="."]
layout_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -200.0
offset_top = -70.0
offset_right = 200.0
offset_bottom = -10.0
grow_horizontal = 2
grow_vertical = 0
[node name="Hotbar" type="HBoxContainer" parent="BottomCenter"]
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
alignment = 1
[node name="EscapeIndicator" type="Control" parent="."]
visible = false
layout_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = 50.0
offset_right = 100.0
offset_bottom = 100.0
grow_horizontal = 2
grow_vertical = 2
[node name="Panel" type="Panel" parent="EscapeIndicator"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Countdown" type="Label" parent="EscapeIndicator"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
text = "Escaping... 5.0"
horizontal_alignment = 1
vertical_alignment = 1
[node name="TouchJoystick" type="Control" parent="."]
layout_mode = 3
anchors_preset = 0
offset_left = 63.0
offset_top = 699.0
offset_right = 103.0
offset_bottom = 739.0
scale = Vector2(0.3600018, 0.3600018)
script = ExtResource("2_hqnrr")
antialiased = true
use_textures = true
base_texture = ExtResource("3_8qguk")
knob_texture = ExtResource("4_136eg")
use_input_actions = true