[gd_scene load_steps=21 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://ctsfevsx6nnv2" path="res://scenes/hub/dungeon_browser.tscn" id="2_browser"] [ext_resource type="Texture2D" uid="uid://cdasq4ydwp73d" path="res://assets/ui/bg1.png" id="2_x5h0m"] [ext_resource type="PackedScene" uid="uid://bwlmaoeg3gbrn" path="res://scenes/ui/inventory.tscn" id="3_inventory"] [ext_resource type="Texture2D" uid="uid://c5mayhik483jx" path="res://assets/ui/border.png" id="3_nk3pq"] [ext_resource type="PackedScene" uid="uid://hsrxtbww60u" path="res://scenes/ui/crafting_ui.tscn" id="4_crafting"] [ext_resource type="Texture2D" uid="uid://dt0uqrxoh4kdj" path="res://assets/ui/xpBarBorder.png" id="4_khm7y"] [ext_resource type="Texture2D" uid="uid://coefkwhawwkt8" path="res://assets/ui/TextFrame.png" id="5_nk0ko"] [ext_resource type="PackedScene" path="res://scenes/ui/stash.tscn" id="5_stash"] [ext_resource type="Texture2D" uid="uid://obf6n8b324k7" path="res://assets/ui/displayint.png" id="6_8wxbt"] [ext_resource type="PackedScene" uid="uid://bevuo5j02po14" path="res://scenes/ui/char_sheet.tscn" id="7_7dxfp"] [ext_resource type="Texture2D" uid="uid://bs0xtpelj7ka4" path="res://assets/ui/plusBtn.png" id="7_hx8vm"] [ext_resource type="Texture2D" uid="uid://cweri4tanbppf" path="res://assets/ui/plusBtnDown.png" id="8_2dc6d"] [ext_resource type="Texture2D" uid="uid://bniu06cdeknuj" path="res://assets/ui/inventory.png" id="9_nk0ko"] [ext_resource type="Texture2D" uid="uid://ds0ugfvjt1ate" path="res://assets/ui/sheet.png" id="10_8wxbt"] [ext_resource type="Texture2D" uid="uid://wpoldw1vbl0f" path="res://assets/ui/stash.png" id="10_hx8vm"] [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_nobn3"] texture = ExtResource("2_x5h0m") [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_v847t"] bg_color = Color(0, 0, 0, 1) [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_pi7qk"] bg_color = Color(0.2901961, 0.8784314, 0.28627452, 1) [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_4ghtg"] texture = ExtResource("6_8wxbt") [node name="HubScreen" type="CanvasLayer"] script = ExtResource("1_u7qci") [node name="TextureRect" type="TextureRect" parent="."] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 texture = ExtResource("2_x5h0m") expand_mode = 1 [node name="Control" type="Control" parent="."] layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 scale = Vector2(1.0038548, 1) [node name="HBoxContainer" type="HBoxContainer" parent="Control"] layout_mode = 1 anchors_preset = 8 anchor_left = 0.5 anchor_top = 0.5 anchor_right = 0.5 anchor_bottom = 0.5 offset_left = -161.84317 offset_top = -249.0 offset_right = 351.15698 offset_bottom = 88.0 grow_horizontal = 2 grow_vertical = 2 [node name="LeftPanel" type="VBoxContainer" parent="Control/HBoxContainer"] layout_mode = 2 [node name="CharacterInfo" type="VBoxContainer" parent="Control/HBoxContainer/LeftPanel"] visible = false layout_mode = 2 [node name="NameLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/CharacterInfo"] layout_mode = 2 [node name="LevelLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/CharacterInfo"] layout_mode = 2 [node name="XPBar" type="ProgressBar" parent="Control/HBoxContainer/LeftPanel/CharacterInfo"] layout_mode = 2 [node name="GoldLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/CharacterInfo"] layout_mode = 2 text = "Gold: 0" [node name="StatsPanel" type="GridContainer" parent="Control/HBoxContainer/LeftPanel"] visible = false layout_mode = 2 columns = 3 [node name="StrLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "Strength" [node name="StrValue" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="StrButton" type="Button" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "+" [node name="IntLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "Intelligence" [node name="IntValue" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="IntButton" type="Button" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "+" [node name="DexLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "Dexterity" [node name="DexValue" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="DexButton" type="Button" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "+" [node name="WisLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "Wisdom" [node name="WisValue" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="WisButton" type="Button" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "+" [node name="EndLabel" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "Endurance" [node name="EndValue" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="EndButton" type="Button" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 text = "+" [node name="PointsRemaining" type="Label" parent="Control/HBoxContainer/LeftPanel/StatsPanel"] layout_mode = 2 [node name="MenuButtons" type="HBoxContainer" parent="Control/HBoxContainer/LeftPanel"] layout_mode = 2 [node name="InventoryBtn" type="Button" parent="Control/HBoxContainer/LeftPanel/MenuButtons"] visible = false layout_mode = 2 text = "Inventory" [node name="RightPanel" type="VBoxContainer" parent="Control/HBoxContainer"] layout_mode = 2 alignment = 2 [node name="TierSelection" type="HBoxContainer" parent="Control/HBoxContainer/RightPanel"] layout_mode = 2 [node name="Tier1Btn" type="Button" parent="Control/HBoxContainer/RightPanel/TierSelection"] layout_mode = 2 text = "Tier 1" [node name="Tier2Btn" type="Button" parent="Control/HBoxContainer/RightPanel/TierSelection"] layout_mode = 2 text = "Tier 2" [node name="Tier3Btn" type="Button" parent="Control/HBoxContainer/RightPanel/TierSelection"] layout_mode = 2 text = "Tier 3" [node name="Tier4Btn" type="Button" parent="Control/HBoxContainer/RightPanel/TierSelection"] layout_mode = 2 text = "Tier 4" [node name="Tier5Btn" type="Button" parent="Control/HBoxContainer/RightPanel/TierSelection"] layout_mode = 2 text = "Tier 5" [node name="EnterDungeonBtn" type="Button" parent="Control/HBoxContainer/RightPanel"] layout_mode = 2 text = "Quick Join" [node name="BrowseDungeonsBtn" type="Button" parent="Control/HBoxContainer/RightPanel"] layout_mode = 2 text = "Browse Dungeons" [node name="Panel" type="Panel" parent="Control"] visible = false layout_mode = 0 offset_left = 169.3472 offset_top = 132.0 offset_right = 569.34717 offset_bottom = 632.0 theme_override_styles/panel = SubResource("StyleBoxTexture_nobn3") [node name="Border" type="Sprite2D" parent="Control/Panel"] position = Vector2(200, 250) scale = Vector2(1.231, 1.28) texture = ExtResource("3_nk3pq") [node name="Name" type="Label" parent="Control/Panel"] layout_mode = 0 offset_left = 145.0 offset_top = 13.0 offset_right = 237.0 offset_bottom = 36.0 text = "Placeholder" [node name="Level" type="Label" parent="Control/Panel"] layout_mode = 0 offset_left = 147.0 offset_top = 36.0 offset_right = 239.0 offset_bottom = 59.0 text = "Level" [node name="ProgressBar" type="ProgressBar" parent="Control/Panel"] layout_mode = 0 offset_left = 99.0 offset_top = 61.0 offset_right = 299.0 offset_bottom = 88.0 theme_override_styles/background = SubResource("StyleBoxFlat_v847t") theme_override_styles/fill = SubResource("StyleBoxFlat_pi7qk") min_value = 50.0 value = 50.0 [node name="XpBarBorder" type="Sprite2D" parent="Control/Panel/ProgressBar"] position = Vector2(100, 14) scale = Vector2(1.559995, 1.0799927) texture = ExtResource("4_khm7y") [node name="Label" type="Label" parent="Control/Panel"] layout_mode = 0 offset_left = 85.0 offset_top = 381.0 offset_right = 130.0 offset_bottom = 404.0 text = "Gold: " [node name="HBoxContainer" type="HBoxContainer" parent="Control/Panel"] layout_mode = 1 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 [node name="StrFrame" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 180.5) texture = ExtResource("5_nk0ko") [node name="StrLabel" type="Label" parent="Control/Panel/HBoxContainer/StrFrame"] offset_left = -32.0 offset_top = -26.0 offset_right = 35.0 offset_bottom = 23.0 text = "Strength" horizontal_alignment = 1 vertical_alignment = 1 [node name="DisplayCurrentStr" type="Panel" parent="Control/Panel/HBoxContainer/StrFrame"] clip_contents = true offset_left = 70.0 offset_top = -16.5 offset_right = 145.0 offset_bottom = 15.5 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") [node name="currentStrLabel" type="Label" parent="Control/Panel/HBoxContainer/StrFrame/DisplayCurrentStr"] layout_mode = 0 offset_left = 16.0 offset_top = 4.5 offset_right = 56.0 offset_bottom = 27.5 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="plusStr" type="TextureButton" parent="Control/Panel/HBoxContainer/StrFrame"] offset_left = 145.0 offset_top = -16.0 offset_right = 185.0 offset_bottom = 24.0 scale = Vector2(0.5200025, 0.5200025) texture_normal = ExtResource("7_hx8vm") texture_pressed = ExtResource("8_2dc6d") flip_h = true [node name="IntFrame" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 213.5) texture = ExtResource("5_nk0ko") [node name="IntLabel" type="Label" parent="Control/Panel/HBoxContainer/IntFrame"] offset_left = -45.0 offset_top = -11.0 offset_right = 45.0 offset_bottom = 12.0 text = "Intelligence" [node name="DisplayCurrentInt" type="Panel" parent="Control/Panel/HBoxContainer/IntFrame"] clip_contents = true offset_left = 70.0 offset_top = -16.0 offset_right = 145.0 offset_bottom = 16.0 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") [node name="currentIntLabel" type="Label" parent="Control/Panel/HBoxContainer/IntFrame/DisplayCurrentInt"] layout_mode = 0 offset_left = 16.0 offset_top = 5.0 offset_right = 56.0 offset_bottom = 28.0 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="plusInt" type="TextureButton" parent="Control/Panel/HBoxContainer/IntFrame"] offset_left = 145.0 offset_top = -16.0 offset_right = 209.0 offset_bottom = 44.0 scale = Vector2(0.5200025, 0.5200025) texture_normal = ExtResource("7_hx8vm") texture_pressed = ExtResource("8_2dc6d") flip_h = true [node name="DexFrame" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 246.5) texture = ExtResource("5_nk0ko") [node name="DexLabel" type="Label" parent="Control/Panel/HBoxContainer/DexFrame"] offset_left = -35.0 offset_top = -11.0 offset_right = 37.0 offset_bottom = 12.0 text = "Dexterity" [node name="DisplayCurrentDex" type="Panel" parent="Control/Panel/HBoxContainer/DexFrame"] clip_contents = true offset_left = 70.0 offset_top = -16.0 offset_right = 145.0 offset_bottom = 16.0 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") [node name="currentDexLabel" type="Label" parent="Control/Panel/HBoxContainer/DexFrame/DisplayCurrentDex"] layout_mode = 0 offset_left = 16.0 offset_top = 5.0 offset_right = 56.0 offset_bottom = 28.0 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="plusDex" type="TextureButton" parent="Control/Panel/HBoxContainer/DexFrame"] offset_left = 145.0 offset_top = -16.0 offset_right = 209.0 offset_bottom = 44.0 scale = Vector2(0.5200025, 0.5200025) texture_normal = ExtResource("7_hx8vm") texture_pressed = ExtResource("8_2dc6d") flip_h = true [node name="WisFrame" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 279.5) texture = ExtResource("5_nk0ko") [node name="WisLabel" type="Label" parent="Control/Panel/HBoxContainer/WisFrame"] offset_left = -30.0 offset_top = -11.0 offset_right = 33.0 offset_bottom = 12.0 text = "Wisdom" [node name="DisplayCurrentWis" type="Panel" parent="Control/Panel/HBoxContainer/WisFrame"] clip_contents = true offset_left = 70.0 offset_top = -16.0 offset_right = 145.0 offset_bottom = 16.0 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") [node name="currentWisLabel" type="Label" parent="Control/Panel/HBoxContainer/WisFrame/DisplayCurrentWis"] layout_mode = 0 offset_left = 17.0 offset_top = 4.0 offset_right = 57.0 offset_bottom = 27.0 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="plusWis" type="TextureButton" parent="Control/Panel/HBoxContainer/WisFrame"] offset_left = 145.0 offset_top = -16.0 offset_right = 209.0 offset_bottom = 44.0 scale = Vector2(0.5200025, 0.5200025) texture_normal = ExtResource("7_hx8vm") texture_pressed = ExtResource("8_2dc6d") flip_h = true [node name="EndFrame" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 312.5) texture = ExtResource("5_nk0ko") [node name="EndLabel" type="Label" parent="Control/Panel/HBoxContainer/EndFrame"] offset_left = -41.0 offset_top = -11.0 offset_right = 42.0 offset_bottom = 12.0 text = "Endurance" metadata/_edit_use_anchors_ = true [node name="DisplayCurrentEnd" type="Panel" parent="Control/Panel/HBoxContainer/EndFrame"] clip_contents = true offset_left = 70.0 offset_top = -16.0 offset_right = 145.0 offset_bottom = 16.0 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") metadata/_edit_use_anchors_ = true [node name="currentStrLabel" type="Label" parent="Control/Panel/HBoxContainer/EndFrame/DisplayCurrentEnd"] layout_mode = 0 offset_left = 18.0 offset_top = 3.0 offset_right = 58.0 offset_bottom = 26.0 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="plusEnd" type="TextureButton" parent="Control/Panel/HBoxContainer/EndFrame"] offset_left = 145.0 offset_top = -16.0 offset_right = 209.0 offset_bottom = 44.0 scale = Vector2(0.5200025, 0.5200025) texture_normal = ExtResource("7_hx8vm") texture_pressed = ExtResource("8_2dc6d") flip_h = true [node name="RemainingPoints" type="Sprite2D" parent="Control/Panel/HBoxContainer"] position = Vector2(154.5, 345.5) texture = ExtResource("5_nk0ko") [node name="RemainingPointsLabel" type="Label" parent="Control/Panel/HBoxContainer/RemainingPoints"] offset_left = -52.5 offset_top = -12.0 offset_right = 51.5 offset_bottom = 11.0 text = "Stats to place" metadata/_edit_use_anchors_ = true [node name="DisplayCurrentRP" type="Panel" parent="Control/Panel/HBoxContainer/RemainingPoints"] clip_contents = true offset_left = 70.0 offset_top = -16.0 offset_right = 145.0 offset_bottom = 16.0 theme_override_styles/panel = SubResource("StyleBoxTexture_4ghtg") metadata/_edit_use_anchors_ = true [node name="currentRPLabel" type="Label" parent="Control/Panel/HBoxContainer/RemainingPoints/DisplayCurrentRP"] layout_mode = 0 offset_left = 18.0 offset_top = 3.0 offset_right = 58.0 offset_bottom = 26.0 text = "0" horizontal_alignment = 1 vertical_alignment = 1 [node name="InventoryBtn" type="TextureButton" parent="Control"] layout_mode = 0 offset_left = 183.29343 offset_top = 653.0 offset_right = 366.29343 offset_bottom = 836.0 scale = Vector2(0.44, 0.44) texture_normal = ExtResource("9_nk0ko") [node name="CraftingBtn2" type="TextureButton" parent="Control"] visible = false layout_mode = 0 offset_left = 183.29343 offset_top = 653.0 offset_right = 366.29343 offset_bottom = 836.0 scale = Vector2(0.44, 0.44) texture_normal = ExtResource("9_nk0ko") [node name="StashBtn" type="TextureButton" parent="Control"] layout_mode = 0 offset_left = 372.56387 offset_top = 652.0 offset_right = 567.56384 offset_bottom = 847.0 scale = Vector2(0.44, 0.44) texture_normal = ExtResource("10_hx8vm") [node name="CraftingBtn" type="Button" parent="Control"] layout_mode = 0 offset_left = 292.87106 offset_top = 681.0 offset_right = 362.87106 offset_bottom = 712.0 text = "Crafting" [node name="CharSheetBtn" type="TextureButton" parent="Control"] layout_mode = 0 offset_left = 101.60833 offset_top = 653.0 offset_right = 284.60834 offset_bottom = 836.0 scale = Vector2(0.44000217, 0.44000217) texture_normal = ExtResource("10_8wxbt") [node name="DungeonBrowser" parent="." instance=ExtResource("2_browser")] visible = false [node name="InventoryUI" parent="." instance=ExtResource("3_inventory")] [node name="CraftingUI" parent="." instance=ExtResource("4_crafting")] [node name="StashUI" parent="." instance=ExtResource("5_stash")] [node name="CharSheetUI" parent="." instance=ExtResource("7_7dxfp")] visible = false offset = Vector2(200, 150) scale = Vector2(0.75, 0.75) transform = Transform2D(0.75, 0, 0, 0.75, 200, 150)