This commit is contained in:
dingo
2025-12-15 16:12:12 -05:00
commit fb2a0dd252
52 changed files with 3200 additions and 0 deletions
+36
View File
@@ -0,0 +1,36 @@
[gd_scene load_steps=2 format=3 uid="uid://cd2vqevj7ggok"]
[ext_resource type="Script" uid="uid://bknoefdelbqoo" path="res://scripts/ui/chat_ui.gd" id="1_6bdm3"]
[node name="Chat" type="CanvasLayer"]
script = ExtResource("1_6bdm3")
[node name="Control" type="Control" parent="."]
layout_mode = 3
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 1.0
offset_top = -87.0
offset_right = 41.0
offset_bottom = -47.0
grow_vertical = 0
scale = Vector2(8.839999, 2.1200001)
[node name="ChatLog" type="ScrollContainer" parent="Control"]
layout_mode = 0
offset_right = 70.0
scale = Vector2(0.60795665, 0.29541135)
[node name="ChatMessages" type="VBoxContainer" parent="Control/ChatLog"]
layout_mode = 2
[node name="InputContainer" type="HBoxContainer" parent="Control"]
layout_mode = 0
offset_top = 8.490566
offset_right = 70.0
offset_bottom = 39.490566
scale = Vector2(0.3443181, 1)
[node name="ChatInput" type="LineEdit" parent="Control/InputContainer"]
layout_mode = 2
+50
View File
@@ -0,0 +1,50 @@
[gd_scene load_steps=2 format=3 uid="uid://death_screen"]
[ext_resource type="Script" path="res://scripts/ui/death_screen.gd" id="1_death"]
[node name="DeathScreen" type="CanvasLayer"]
layer = 20
visible = false
script = ExtResource("1_death")
[node name="ColorRect" type="ColorRect" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.7)
[node name="Panel" type="PanelContainer" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -150.0
offset_top = -100.0
offset_right = 150.0
offset_bottom = 100.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
layout_mode = 2
theme_override_constants/separation = 20
alignment = 1
[node name="Title" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "YOU DIED"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Message" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Your inventory has been lost in the dungeon."
horizontal_alignment = 1
autowrap_mode = 2
[node name="ReturnButton" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Return to Hub"
+203
View File
@@ -0,0 +1,203 @@
[gd_scene load_steps=5 format=3 uid="uid://cctw06lt2ffgb"]
[ext_resource type="Script" uid="uid://dis78b7f8x3j0" path="res://scripts/ui/hud.gd" id="1_hud"]
[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="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
+67
View File
@@ -0,0 +1,67 @@
[gd_scene load_steps=2 format=3 uid="uid://bwlmaoeg3gbrn"]
[ext_resource type="Script" uid="uid://dnt1s2c81111q" path="res://scripts/ui/inventory_ui.gd" id="1_s6ek7"]
[node name="Inventory" type="CanvasLayer"]
script = ExtResource("1_s6ek7")
[node name="PanelContainer" type="PanelContainer" parent="."]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -96.0
offset_top = -44.5
offset_right = 96.0
offset_bottom = 44.5
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"]
layout_mode = 2
[node name="Header" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="Title" type="Label" parent="PanelContainer/VBoxContainer/Header"]
layout_mode = 2
text = "Inventory"
[node name="CloseButton" type="Button" parent="PanelContainer/VBoxContainer/Header"]
layout_mode = 2
text = "x"
[node name="Content" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="EquipmentSection" type="VBoxContainer" parent="PanelContainer/VBoxContainer/Content"]
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/Content/EquipmentSection"]
layout_mode = 2
text = "Equipment"
[node name="EquipmentGrid" type="GridContainer" parent="PanelContainer/VBoxContainer/Content/EquipmentSection"]
layout_mode = 2
columns = 3
[node name="BagSection" type="VBoxContainer" parent="PanelContainer/VBoxContainer/Content"]
layout_mode = 2
[node name="Label" type="Label" parent="PanelContainer/VBoxContainer/Content/BagSection"]
layout_mode = 2
text = "Bag (30 Slots)"
[node name="InventoryGrid" type="GridContainer" parent="PanelContainer/VBoxContainer/Content/BagSection"]
layout_mode = 2
columns = 6
[node name="Footer" type="HBoxContainer" parent="PanelContainer/VBoxContainer"]
layout_mode = 2
[node name="GoldLabel" type="Label" parent="PanelContainer/VBoxContainer/Footer"]
layout_mode = 2
[node name="WeightLabel" type="Label" parent="PanelContainer/VBoxContainer/Footer"]
layout_mode = 2