summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-05-23 17:21:21 -0400
committerbd <bdunahu@operationnull.com>2025-05-23 17:21:21 -0400
commit6d166db85ec2518b3219240f7cbf26221eec1f76 (patch)
treeb37d47ff7e65cc9c3e4361f322c26e232c93b940 /scenes
parentc278c21c5019b2e82651fec10b819c3b29b8ff7d (diff)
Basic UI for tower display
Diffstat (limited to 'scenes')
-rw-r--r--scenes/ui.tscn27
-rw-r--r--scenes/ui_panel.tscn34
2 files changed, 60 insertions, 1 deletions
diff --git a/scenes/ui.tscn b/scenes/ui.tscn
index bd8f3ff..cb0c91f 100644
--- a/scenes/ui.tscn
+++ b/scenes/ui.tscn
@@ -1,7 +1,8 @@
-[gd_scene load_steps=4 format=3 uid="uid://dycgp3yept14k"]
+[gd_scene load_steps=5 format=3 uid="uid://dycgp3yept14k"]
[ext_resource type="Script" uid="uid://dtj2opmwvh4y1" path="res://scripts/life.gd" id="1_suays"]
[ext_resource type="Script" uid="uid://b8urrbmynk327" path="res://scripts/morale.gd" id="1_yb1mt"]
+[ext_resource type="PackedScene" uid="uid://edgs77gubcl8" path="res://scenes/ui_panel.tscn" id="3_yev5y"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nt14h"]
bg_color = Color(0, 0.0117647, 0.552941, 1)
@@ -37,3 +38,27 @@ layout_mode = 2
theme_override_font_sizes/font_size = 8
text = "Life: 20"
script = ExtResource("1_suays")
+
+[node name="Warlock" parent="MarginContainer/HBoxContainer" instance=ExtResource("3_yev5y")]
+layout_mode = 2
+texture_atlas_coords = Vector2(30, 1)
+object_name = "Warlock"
+cost = "10"
+
+[node name="Wyvern" parent="MarginContainer/HBoxContainer" instance=ExtResource("3_yev5y")]
+layout_mode = 2
+texture_atlas_coords = Vector2(24, 10)
+object_name = "Wyvern"
+cost = "15"
+
+[node name="Werewolf" parent="MarginContainer/HBoxContainer" instance=ExtResource("3_yev5y")]
+layout_mode = 2
+texture_atlas_coords = Vector2(26, 11)
+object_name = "Werewolf"
+cost = "-"
+
+[node name="Wellspring" parent="MarginContainer/HBoxContainer" instance=ExtResource("3_yev5y")]
+layout_mode = 2
+texture_atlas_coords = Vector2(38, 11)
+object_name = "Wellspring"
+cost = "-"
diff --git a/scenes/ui_panel.tscn b/scenes/ui_panel.tscn
new file mode 100644
index 0000000..e761516
--- /dev/null
+++ b/scenes/ui_panel.tscn
@@ -0,0 +1,34 @@
+[gd_scene load_steps=3 format=3 uid="uid://edgs77gubcl8"]
+
+[ext_resource type="Script" uid="uid://do8a8uq1jvs7b" path="res://scripts/ui_panel.gd" id="1_d2vu8"]
+
+[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sv14y"]
+bg_color = Color(0, 0.00526825, 0.379014, 1)
+
+[node name="UIPanel" type="Panel"]
+custom_minimum_size = Vector2(16, 16)
+offset_right = 24.0
+offset_bottom = 16.0
+size_flags_horizontal = 3
+theme_override_styles/panel = SubResource("StyleBoxFlat_sv14y")
+script = ExtResource("1_d2vu8")
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+layout_mode = 0
+offset_right = 16.0
+offset_bottom = 17.0
+
+[node name="Texture" type="TextureRect" parent="HBoxContainer"]
+layout_mode = 2
+
+[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer"]
+layout_mode = 2
+theme_override_constants/separation = -3
+
+[node name="Label" type="Label" parent="HBoxContainer/VBoxContainer"]
+layout_mode = 2
+theme_override_font_sizes/font_size = 8
+
+[node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer"]
+layout_mode = 2
+theme_override_font_sizes/font_size = 8