Initial
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://bs15j065xsd8j"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bq76ikog47k8" path="res://scripts/ui/auth_ui.gd" id="1_m4a8o"]
|
||||
|
||||
[node name="AuthScreen" type="CanvasLayer"]
|
||||
script = ExtResource("1_m4a8o")
|
||||
|
||||
[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
|
||||
|
||||
[node name="CenterContainer" type="CenterContainer" 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 = -283.00003
|
||||
offset_top = -367.0
|
||||
offset_right = -129.00003
|
||||
offset_bottom = -103.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
scale = Vector2(4.399999, 2.8)
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="Control/CenterContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="Control/CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Dungeon Divers"
|
||||
horizontal_alignment = 1
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="Control/CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
current_tab = 0
|
||||
clip_tabs = false
|
||||
|
||||
[node name="Login" type="VBoxContainer" parent="Control/CenterContainer/VBoxContainer/TabContainer"]
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
[node name="UsernameInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Login"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Username"
|
||||
|
||||
[node name="PasswordInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Login"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Password"
|
||||
secret = true
|
||||
|
||||
[node name="LoginButton" type="Button" parent="Control/CenterContainer/VBoxContainer/TabContainer/Login"]
|
||||
layout_mode = 2
|
||||
text = "Login"
|
||||
|
||||
[node name="Register" type="VBoxContainer" parent="Control/CenterContainer/VBoxContainer/TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
[node name="RegUsernameInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Username"
|
||||
|
||||
[node name="CharNameInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Character Name"
|
||||
|
||||
[node name="RegEmailInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Email"
|
||||
|
||||
[node name="RegPasswordInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Password"
|
||||
secret = true
|
||||
|
||||
[node name="RegConfirmPasswordInput" type="LineEdit" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
placeholder_text = "Confirm Password"
|
||||
secret = true
|
||||
|
||||
[node name="RegisterButton" type="Button" parent="Control/CenterContainer/VBoxContainer/TabContainer/Register"]
|
||||
layout_mode = 2
|
||||
text = "Register"
|
||||
|
||||
[node name="StatusLabel" type="Label" parent="Control/CenterContainer/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_chest"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
@onready var sprite: Sprite2D = $Sprite
|
||||
|
||||
var chest_data: Dictionary = {}
|
||||
var is_opened: bool = false
|
||||
|
||||
func _ready():
|
||||
# Get texture from generator if available
|
||||
if SpriteGenerator:
|
||||
sprite.texture = SpriteGenerator.get_square()
|
||||
|
||||
_update_visual()
|
||||
|
||||
func update_data(data: Dictionary):
|
||||
chest_data = data
|
||||
is_opened = data.get(\"opened\", data.get(\"Opened\", false))
|
||||
_update_visual()
|
||||
|
||||
func _update_visual():
|
||||
if is_opened:
|
||||
sprite.modulate = Color(0.4, 0.33, 0.2) # #665533 - darker when opened
|
||||
else:
|
||||
sprite.modulate = Color(0.67, 0.53, 0.27) # #aa8844 - gold when closed
|
||||
"
|
||||
|
||||
[node name="Chest" type="Node2D"]
|
||||
script = SubResource("GDScript_chest")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.667, 0.533, 0.267, 1)
|
||||
scale = Vector2(0.75, 0.75)
|
||||
@@ -0,0 +1,32 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_dropped_item"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
@onready var sprite: Sprite2D = $Sprite
|
||||
|
||||
var item_data: Dictionary = {}
|
||||
var bob_time: float = 0.0
|
||||
|
||||
func _ready():
|
||||
# Get texture from generator if available
|
||||
if SpriteGenerator:
|
||||
sprite.texture = SpriteGenerator.get_circle()
|
||||
|
||||
sprite.modulate = Color(1.0, 0.84, 0.0) # Gold color
|
||||
|
||||
func _process(delta):
|
||||
# Gentle bobbing animation
|
||||
bob_time += delta * 3.0
|
||||
sprite.position.y = sin(bob_time) * 2.0
|
||||
|
||||
func update_data(data: Dictionary):
|
||||
item_data = data
|
||||
"
|
||||
|
||||
[node name="DroppedItem" type="Node2D"]
|
||||
script = SubResource("GDScript_dropped_item")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
modulate = Color(1, 0.843, 0, 1)
|
||||
scale = Vector2(0.5, 0.5)
|
||||
@@ -0,0 +1,36 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cldp1w744fs2l"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cwcnvv5ptewf6" path="res://scripts/dungeon/dungeon_manager.gd" id="1_dungeon"]
|
||||
[ext_resource type="PackedScene" uid="uid://cctw06lt2ffgb" path="res://scenes/ui/hud.tscn" id="2_4f38h"]
|
||||
[ext_resource type="TileSet" uid="uid://jruqgfbry8sy" path="res://assets/sprites/dungeon_tileset.tres" id="2_frwky"]
|
||||
[ext_resource type="PackedScene" uid="uid://3nr0vpkyyy0y" path="res://scenes/dungeon/player.tscn" id="2_player"]
|
||||
[ext_resource type="PackedScene" uid="uid://cd2vqevj7ggok" path="res://scenes/ui/chat.tscn" id="3_frwky"]
|
||||
[ext_resource type="PackedScene" uid="uid://bwlmaoeg3gbrn" path="res://scenes/ui/inventory.tscn" id="5_0fky6"]
|
||||
|
||||
[node name="DungeonScene" type="Node2D"]
|
||||
script = ExtResource("1_dungeon")
|
||||
|
||||
[node name="TileMapLayer" type="TileMapLayer" parent="."]
|
||||
tile_set = ExtResource("2_frwky")
|
||||
|
||||
[node name="Entities" type="Node2D" parent="."]
|
||||
|
||||
[node name="Players" type="Node2D" parent="Entities"]
|
||||
|
||||
[node name="Mobs" type="Node2D" parent="Entities"]
|
||||
|
||||
[node name="Chests" type="Node2D" parent="Entities"]
|
||||
|
||||
[node name="DroppedItems" type="Node2D" parent="Entities"]
|
||||
|
||||
[node name="Player" parent="." instance=ExtResource("2_player")]
|
||||
|
||||
[node name="Hud" parent="." instance=ExtResource("2_4f38h")]
|
||||
|
||||
[node name="Inventory" parent="." instance=ExtResource("5_0fky6")]
|
||||
visible = false
|
||||
|
||||
[node name="Chat" parent="." instance=ExtResource("3_frwky")]
|
||||
visible = false
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
@@ -0,0 +1,67 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_mob"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
@onready var sprite: Sprite2D = $Sprite
|
||||
@onready var name_label: Label = $NameLabel
|
||||
@onready var health_bar: ProgressBar = $HealthBar
|
||||
|
||||
var mob_data: Dictionary = {}
|
||||
|
||||
func _ready():
|
||||
# Get texture from generator if available
|
||||
if SpriteGenerator:
|
||||
sprite.texture = SpriteGenerator.get_circle()
|
||||
|
||||
# Default mob color (red)
|
||||
sprite.modulate = Color(0.67, 0.27, 0.27) # #aa4444
|
||||
|
||||
func update_data(data: Dictionary):
|
||||
mob_data = data
|
||||
|
||||
var mname = data.get(\"name\", data.get(\"Name\", \"Mob\"))
|
||||
name_label.text = mname
|
||||
|
||||
var hp = data.get(\"health\", data.get(\"Health\", 100))
|
||||
var max_hp = data.get(\"maxHealth\", data.get(\"MaxHealth\", 100))
|
||||
health_bar.max_value = max_hp
|
||||
health_bar.value = hp
|
||||
|
||||
# Change color based on state
|
||||
var state = str(data.get(\"state\", data.get(\"State\", \"idle\"))).to_lower()
|
||||
if state == \"attacking\":
|
||||
sprite.modulate = Color(1.0, 0.4, 0.4) # Bright red when attacking
|
||||
else:
|
||||
sprite.modulate = Color(0.67, 0.27, 0.27) # Normal red
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1"]
|
||||
radius = 14.0
|
||||
|
||||
[node name="Mob" type="Node2D"]
|
||||
script = SubResource("GDScript_mob")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.667, 0.267, 0.267, 1)
|
||||
scale = Vector2(0.875, 0.875)
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
offset_left = -50.0
|
||||
offset_top = -35.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = -20.0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
offset_left = -20.0
|
||||
offset_top = -28.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = -23.0
|
||||
max_value = 100.0
|
||||
value = 100.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_1")
|
||||
@@ -0,0 +1,66 @@
|
||||
[gd_scene load_steps=3 format=3]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_other_player"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
@onready var sprite: Sprite2D = $Sprite
|
||||
@onready var name_label: Label = $NameLabel
|
||||
@onready var health_bar: ProgressBar = $HealthBar
|
||||
|
||||
var player_data: Dictionary = {}
|
||||
|
||||
func _ready():
|
||||
# Get texture from generator if available
|
||||
if SpriteGenerator:
|
||||
sprite.texture = SpriteGenerator.get_circle()
|
||||
|
||||
# Other players are blue
|
||||
sprite.modulate = Color(0.27, 0.67, 1.0) # #44aaff
|
||||
|
||||
func update_data(data: Dictionary):
|
||||
player_data = data
|
||||
|
||||
var pname = data.get(\"name\", data.get(\"Name\", \"Player\"))
|
||||
name_label.text = pname
|
||||
|
||||
var hp = data.get(\"health\", data.get(\"Health\", 100))
|
||||
var max_hp = data.get(\"maxHealth\", data.get(\"MaxHealth\", 100))
|
||||
health_bar.max_value = max_hp
|
||||
health_bar.value = hp
|
||||
|
||||
var is_alive = data.get(\"isAlive\", data.get(\"IsAlive\", true))
|
||||
if is_alive:
|
||||
sprite.modulate = Color(0.27, 0.67, 1.0) # Blue
|
||||
else:
|
||||
sprite.modulate = Color(0.3, 0.3, 0.3) # Gray when dead
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_1"]
|
||||
radius = 14.0
|
||||
|
||||
[node name="OtherPlayer" type="Node2D"]
|
||||
script = SubResource("GDScript_other_player")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.267, 0.667, 1, 1)
|
||||
scale = Vector2(0.875, 0.875)
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
offset_left = -50.0
|
||||
offset_top = -35.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = -20.0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
offset_left = -20.0
|
||||
offset_top = 18.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 25.0
|
||||
max_value = 100.0
|
||||
value = 100.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_1")
|
||||
@@ -0,0 +1,74 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://3nr0vpkyyy0y"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_player"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
# Player visual representation
|
||||
@onready var sprite: Sprite2D = $Sprite
|
||||
@onready var aim_line: Line2D = $AimLine
|
||||
@onready var name_label: Label = $NameLabel
|
||||
@onready var health_bar: ProgressBar = $HealthBar
|
||||
|
||||
var aim_angle: float = 0.0
|
||||
|
||||
func _ready():
|
||||
# Get texture from generator if available
|
||||
if SpriteGenerator:
|
||||
sprite.texture = SpriteGenerator.get_circle()
|
||||
|
||||
# Set player color (green)
|
||||
sprite.modulate = Color(0.27, 1.0, 0.53) # #44ff88
|
||||
|
||||
# Setup aim line
|
||||
aim_line.default_color = Color(0.53, 1.0, 0.67) # #88ffaa
|
||||
aim_line.width = 3.0
|
||||
|
||||
func _process(_delta):
|
||||
# Update aim line direction
|
||||
aim_line.clear_points()
|
||||
aim_line.add_point(Vector2.ZERO)
|
||||
aim_line.add_point(Vector2(cos(aim_angle) * 30, sin(aim_angle) * 30))
|
||||
|
||||
func set_aim_angle(angle: float):
|
||||
aim_angle = angle
|
||||
|
||||
func update_health(current: int, maximum: int):
|
||||
health_bar.max_value = maximum
|
||||
health_bar.value = current
|
||||
|
||||
func set_player_name(pname: String):
|
||||
name_label.text = pname
|
||||
"
|
||||
|
||||
[sub_resource type="CircleShape2D" id="CircleShape2D_collision"]
|
||||
radius = 14.0
|
||||
|
||||
[node name="Player" type="Node2D"]
|
||||
script = SubResource("GDScript_player")
|
||||
|
||||
[node name="Sprite" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.267, 1, 0.533, 1)
|
||||
scale = Vector2(0.875, 0.875)
|
||||
|
||||
[node name="AimLine" type="Line2D" parent="."]
|
||||
width = 3.0
|
||||
default_color = Color(0.533, 1, 0.667, 1)
|
||||
|
||||
[node name="NameLabel" type="Label" parent="."]
|
||||
offset_left = -50.0
|
||||
offset_top = -35.0
|
||||
offset_right = 50.0
|
||||
offset_bottom = -20.0
|
||||
horizontal_alignment = 1
|
||||
vertical_alignment = 1
|
||||
|
||||
[node name="HealthBar" type="ProgressBar" parent="."]
|
||||
offset_left = -20.0
|
||||
offset_top = 18.0
|
||||
offset_right = 20.0
|
||||
offset_bottom = 25.0
|
||||
value = 100.0
|
||||
show_percentage = false
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
shape = SubResource("CircleShape2D_collision")
|
||||
@@ -0,0 +1,137 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://linskq5jx4uh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://c4v4vw32gyxbl" path="res://scripts/ui/hub_ui.gd" id="1_u7qci"]
|
||||
|
||||
[node name="HubScreen" type="CanvasLayer"]
|
||||
script = ExtResource("1_u7qci")
|
||||
|
||||
[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.0018518, 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 = -226.0
|
||||
offset_top = -168.5
|
||||
offset_right = 226.0
|
||||
offset_bottom = 168.5
|
||||
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"]
|
||||
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="StatsPanel" type="GridContainer" parent="Control/HBoxContainer/LeftPanel"]
|
||||
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="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 = "Enter Dungeon"
|
||||
@@ -0,0 +1,20 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://cug0ub6ft1ka"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dxdsmo8kp5ppi" path="res://scripts/ui/main.gd" id="1_hyk8p"]
|
||||
[ext_resource type="PackedScene" uid="uid://bs15j065xsd8j" path="res://scenes/auth/auth_screen.tscn" id="2_auth"]
|
||||
[ext_resource type="PackedScene" uid="uid://linskq5jx4uh" path="res://scenes/hub/hub_screen.tscn" id="3_hub"]
|
||||
[ext_resource type="PackedScene" uid="uid://cldp1w744fs2l" path="res://scenes/dungeon/dungeon.tscn" id="4_dungeon"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/ui/death_screen.tscn" id="5_death"]
|
||||
|
||||
[node name="Main" type="Node"]
|
||||
script = ExtResource("1_hyk8p")
|
||||
|
||||
[node name="AuthScreen" parent="." instance=ExtResource("2_auth")]
|
||||
|
||||
[node name="HubScreen" parent="." instance=ExtResource("3_hub")]
|
||||
visible = false
|
||||
|
||||
[node name="DungeonScene" parent="." instance=ExtResource("4_dungeon")]
|
||||
visible = false
|
||||
|
||||
[node name="DeathScreen" parent="." instance=ExtResource("5_death")]
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user