Dungeon Browser

This commit is contained in:
dingo
2025-12-17 15:13:26 -05:00
parent 69c5b38098
commit 229c4cfad1
10 changed files with 333 additions and 2 deletions
+75
View File
@@ -0,0 +1,75 @@
[gd_scene load_steps=2 format=3 uid="uid://ctsfevsx6nnv2"]
[ext_resource type="Script" path="res://scripts/ui/dungeon_browser.gd" id="1"]
[node name="DungeonBrowser" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -300.0
offset_top = -250.0
offset_right = 300.0
offset_bottom = 250.0
grow_horizontal = 2
grow_vertical = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = 10.0
offset_top = 10.0
offset_right = -10.0
offset_bottom = -10.0
[node name="TitleLabel" type="Label" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Dungeon Browser"
horizontal_alignment = 1
[node name="TopBar" type="HBoxContainer" parent="Panel/VBoxContainer"]
layout_mode = 2
[node name="BracketLabel" type="Label" parent="Panel/VBoxContainer/TopBar"]
layout_mode = 2
size_flags_horizontal = 3
text = "Level 1 (Bracket 1-10)"
[node name="TierSelector" type="OptionButton" parent="Panel/VBoxContainer/TopBar"]
layout_mode = 2
[node name="CreateButton" type="Button" parent="Panel/VBoxContainer/TopBar"]
layout_mode = 2
text = "Create"
[node name="RefreshButton" type="Button" parent="Panel/VBoxContainer/TopBar"]
layout_mode = 2
text = "Refresh"
[node name="CloseButton" type="Button" parent="Panel/VBoxContainer/TopBar"]
layout_mode = 2
text = "X"
[node name="HSeparator" type="HSeparator" parent="Panel/VBoxContainer"]
layout_mode = 2
[node name="ScrollContainer" type="ScrollContainer" parent="Panel/VBoxContainer"]
layout_mode = 2
size_flags_vertical = 3
[node name="DungeonList" type="VBoxContainer" parent="Panel/VBoxContainer/ScrollContainer"]
layout_mode = 2
size_flags_horizontal = 3
+44
View File
@@ -0,0 +1,44 @@
[gd_scene load_steps=2 format=3 uid="uid://dungeonentry"]
[ext_resource type="Script" path="res://scripts/ui/dungeon_entry.gd" id="1"]
[node name="DungeonEntry" type="PanelContainer"]
custom_minimum_size = Vector2(0, 60)
script = ExtResource("1")
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 2
[node name="InfoContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="TierLabel" type="Label" parent="HBoxContainer/InfoContainer"]
layout_mode = 2
text = "Tier 1 [1-10]"
[node name="CreatorLabel" type="Label" parent="HBoxContainer/InfoContainer"]
layout_mode = 2
text = "Created by: Player (Lv.1)"
[node name="PlayersLabel" type="Label" parent="HBoxContainer/InfoContainer"]
layout_mode = 2
text = "Players: 0/20"
[node name="StatusContainer" type="VBoxContainer" parent="HBoxContainer"]
layout_mode = 2
[node name="StatusLabel" type="Label" parent="HBoxContainer/StatusContainer"]
layout_mode = 2
text = "Open"
horizontal_alignment = 2
[node name="TimerLabel" type="Label" parent="HBoxContainer/StatusContainer"]
layout_mode = 2
text = "5:00 remaining"
horizontal_alignment = 2
[node name="JoinButton" type="Button" parent="HBoxContainer"]
custom_minimum_size = Vector2(80, 0)
layout_mode = 2
text = "Join"
+9 -2
View File
@@ -1,6 +1,7 @@
[gd_scene load_steps=2 format=3 uid="uid://linskq5jx4uh"]
[gd_scene load_steps=3 format=3 uid="uid://linskq5jx4uh"]
[ext_resource type="Script" uid="uid://c4v4vw32gyxbl" path="res://scripts/ui/hub_ui.gd" id="1_u7qci"]
[ext_resource type="PackedScene" uid="uid://dungeonbrowser" path="res://scenes/hub/dungeon_browser.tscn" id="2_browser"]
[node name="HubScreen" type="CanvasLayer"]
script = ExtResource("1_u7qci")
@@ -138,4 +139,10 @@ text = "Tier 5"
[node name="EnterDungeonBtn" type="Button" parent="Control/HBoxContainer/RightPanel"]
layout_mode = 2
text = "Enter Dungeon"
text = "Quick Join"
[node name="BrowseDungeonsBtn" type="Button" parent="Control/HBoxContainer/RightPanel"]
layout_mode = 2
text = "Browse Dungeons"
[node name="DungeonBrowser" parent="." instance=ExtResource("2_browser")]