From 84365b6f901a9c0251a9f724a8d9f81a3787e97d Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 3 Nov 2024 14:10:07 +0100 Subject: next commit --- Stages/Wintermaul/HUD.tscn | 151 ++++++++++++++++++++++++++++----------------- 1 file changed, 96 insertions(+), 55 deletions(-) (limited to 'Stages/Wintermaul/HUD.tscn') diff --git a/Stages/Wintermaul/HUD.tscn b/Stages/Wintermaul/HUD.tscn index 279c967..7ec86b5 100644 --- a/Stages/Wintermaul/HUD.tscn +++ b/Stages/Wintermaul/HUD.tscn @@ -1,10 +1,12 @@ -[gd_scene load_steps=24 format=3 uid="uid://bylx30cweulmk"] +[gd_scene load_steps=25 format=3 uid="uid://bylx30cweulmk"] [ext_resource type="Script" path="res://Stages/Wintermaul/HUD.gd" id="1_2bu0v"] [ext_resource type="Texture2D" uid="uid://dlg78heamuf5g" path="res://Assets/UI/tilemap_white.png" id="2_dyehp"] [ext_resource type="PackedScene" uid="uid://x6kohecnw7f5" path="res://UI/SpawnButton.tscn" id="3_7eaea"] [ext_resource type="Texture2D" uid="uid://up1rtweit3ut" path="res://Assets/Mobs/angesnow-menu01.png" id="4_w7sef"] +[ext_resource type="PackedScene" uid="uid://dslebs7aarkoa" path="res://UI/panel_background_blue.tscn" id="4_x1gx8"] [ext_resource type="Theme" uid="uid://c7f1ftrx53ag1" path="res://theme.tres" id="5_121ry"] +[ext_resource type="PackedScene" uid="uid://ei0ai7om3mkw" path="res://Stages/Wintermaul/hud_tower.tscn" id="5_hbytm"] [ext_resource type="Texture2D" uid="uid://dq2i36oe1wj0m" path="res://Assets/Mobs/mob-pressed.png" id="5_xcxr8"] [ext_resource type="Texture2D" uid="uid://dnkr5y0cfxu68" path="res://Assets/Mobs/mob-hovered.png" id="6_4go2d"] [ext_resource type="Texture2D" uid="uid://dsy7k2v5fhh6v" path="res://Assets/Mobs/angesnow-front.png" id="7_ba5tw"] @@ -18,9 +20,6 @@ [ext_resource type="PackedScene" uid="uid://cxd6c4kbnk04c" path="res://UI/PlayersList.tscn" id="16_mq4um"] [ext_resource type="PackedScene" uid="uid://c05aq7xd4kx1p" path="res://UI/TowerConfiguration.tscn" id="17_1c5dq"] -[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_3rjde"] -bg_color = Color(0, 0, 0, 0.54902) - [sub_resource type="AtlasTexture" id="AtlasTexture_byi0r"] atlas = ExtResource("2_dyehp") region = Rect2(392, 69, 13, 13) @@ -47,121 +46,128 @@ anchors_preset = 10 anchor_right = 1.0 offset_bottom = 29.0 grow_horizontal = 2 -theme_override_styles/panel = SubResource("StyleBoxFlat_3rjde") +theme = ExtResource("5_121ry") + +[node name="PanelBackgroundBlue" parent="Panel" instance=ExtResource("4_x1gx8")] +layout_mode = 2 -[node name="VBoxContainer" type="VBoxContainer" parent="Panel"] +[node name="MarginContainer" type="MarginContainer" parent="Panel"] +layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 12 +theme_override_constants/margin_right = 12 +theme_override_constants/margin_bottom = 8 + +[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"] layout_mode = 2 -[node name="Container" type="HBoxContainer" parent="Panel/VBoxContainer"] +[node name="Container" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"] layout_mode = 2 -[node name="GridContainer" type="GridContainer" parent="Panel/VBoxContainer/Container"] +[node name="GridContainer" type="GridContainer" parent="Panel/MarginContainer/VBoxContainer/Container"] layout_mode = 2 columns = 3 -[node name="MarginContainer" type="MarginContainer" parent="Panel/VBoxContainer/Container/GridContainer"] +[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer"] layout_mode = 2 theme_override_constants/margin_left = 4 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 4 theme_override_constants/margin_bottom = 4 -[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer"] layout_mode = 2 -[node name="BuildModeButton" type="TextureRect" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer"] +[node name="BuildModeButton" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer"] texture_filter = 1 custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = SubResource("AtlasTexture_byi0r") expand_mode = 1 -[node name="Label" type="Label" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer"] +[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer"] layout_mode = 2 text = "Build Mode" -[node name="MarginContainer2" type="MarginContainer" parent="Panel/VBoxContainer/Container/GridContainer"] +[node name="MarginContainer2" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer"] layout_mode = 2 theme_override_constants/margin_left = 4 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 4 theme_override_constants/margin_bottom = 4 -[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer2"] +[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer2"] layout_mode = 2 -[node name="SpawnerBoxButton" type="TextureRect" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2"] +[node name="SpawnerBoxButton" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2"] texture_filter = 1 custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = SubResource("AtlasTexture_dixt2") expand_mode = 1 -[node name="Label" type="Label" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2"] +[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2"] layout_mode = 2 text = "Spawn Box" -[node name="MarginContainer3" type="MarginContainer" parent="Panel/VBoxContainer/Container/GridContainer"] +[node name="MarginContainer3" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer"] layout_mode = 2 theme_override_constants/margin_left = 4 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 4 theme_override_constants/margin_bottom = 4 -[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer3"] +[node name="HBoxContainer2" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer3"] layout_mode = 2 -[node name="PlayerListButton" type="TextureRect" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2"] +[node name="PlayerListButton" type="TextureRect" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2"] texture_filter = 1 custom_minimum_size = Vector2(24, 24) layout_mode = 2 texture = SubResource("AtlasTexture_tuk1j") expand_mode = 1 -[node name="Label" type="Label" parent="Panel/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2"] +[node name="Label" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2"] layout_mode = 2 text = "Players List" -[node name="Control" type="Control" parent="Panel/VBoxContainer/Container"] +[node name="Control" type="Control" parent="Panel/MarginContainer/VBoxContainer/Container"] layout_mode = 2 size_flags_horizontal = 3 -[node name="MarginContainer" type="MarginContainer" parent="Panel/VBoxContainer/Container"] +[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/Container"] layout_mode = 2 theme_override_constants/margin_right = 8 -[node name="HBoxContainer" type="HBoxContainer" parent="Panel/VBoxContainer/Container/MarginContainer"] +[node name="HBoxContainer" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer/Container/MarginContainer"] layout_mode = 2 -[node name="Time" type="Label" parent="Panel/VBoxContainer/Container/MarginContainer/HBoxContainer"] +[node name="Time" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/MarginContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "0" -[node name="Money" type="Label" parent="Panel/VBoxContainer/Container/MarginContainer/HBoxContainer"] +[node name="Money" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/MarginContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "0" -[node name="Income" type="Label" parent="Panel/VBoxContainer/Container/MarginContainer/HBoxContainer"] +[node name="Income" type="Label" parent="Panel/MarginContainer/VBoxContainer/Container/MarginContainer/HBoxContainer"] unique_name_in_owner = true layout_mode = 2 text = "0" -[node name="ColorRect" type="ColorRect" parent="Panel/VBoxContainer"] -custom_minimum_size = Vector2(0, 1) -layout_mode = 2 - [node name="VBoxContainer" type="VBoxContainer" parent="."] anchors_preset = 1 anchor_left = 1.0 anchor_right = 1.0 offset_left = -288.0 -offset_top = 41.0 +offset_top = 67.0 offset_right = -4.0 -offset_bottom = 131.0 +offset_bottom = 199.0 grow_horizontal = 0 mouse_filter = 0 +theme = ExtResource("5_121ry") [node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer"] layout_mode = 2 @@ -201,6 +207,7 @@ anchor_bottom = 1.0 offset_top = -120.0 grow_horizontal = 2 grow_vertical = 0 +theme = ExtResource("5_121ry") theme_override_constants/margin_left = 4 theme_override_constants/margin_top = 4 theme_override_constants/margin_right = 4 @@ -216,12 +223,15 @@ size_flags_horizontal = 3 size_flags_stretch_ratio = 100.0 mouse_filter = 1 +[node name="PanelBackgroundBlue" parent="MarginContainer/HBoxContainer/TowerConfigurationsContainer" instance=ExtResource("4_x1gx8")] +layout_mode = 2 + [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/TowerConfigurationsContainer"] layout_mode = 2 -theme_override_constants/margin_left = 8 -theme_override_constants/margin_top = 8 -theme_override_constants/margin_right = 8 -theme_override_constants/margin_bottom = 8 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 24 [node name="ScrollContainer" type="ScrollContainer" parent="MarginContainer/HBoxContainer/TowerConfigurationsContainer/MarginContainer"] layout_mode = 2 @@ -242,11 +252,14 @@ layout_mode = 2 size_flags_horizontal = 3 size_flags_stretch_ratio = 100.0 +[node name="PanelBackgroundBlue" parent="MarginContainer/HBoxContainer/MultiSelectionContainer" instance=ExtResource("4_x1gx8")] +layout_mode = 2 + [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/MultiSelectionContainer"] layout_mode = 2 -theme_override_constants/margin_left = 4 -theme_override_constants/margin_top = 4 -theme_override_constants/margin_right = 4 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 8 +theme_override_constants/margin_right = 16 theme_override_constants/margin_bottom = 4 [node name="MultiSelectionList" type="HFlowContainer" parent="MarginContainer/HBoxContainer/MultiSelectionContainer/MarginContainer"] @@ -261,20 +274,20 @@ layout_mode = 2 size_flags_horizontal = 10 size_flags_stretch_ratio = 2.0 -[node name="SelectionData" type="MarginContainer" parent="MarginContainer/HBoxContainer/SelectionContainer"] -unique_name_in_owner = true +[node name="PanelBackgroundBlue" parent="MarginContainer/HBoxContainer/SelectionContainer" instance=ExtResource("4_x1gx8")] layout_mode = 2 -theme_override_constants/margin_left = 4 -theme_override_constants/margin_top = 4 -theme_override_constants/margin_right = 4 -theme_override_constants/margin_bottom = 4 -[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer/HBoxContainer/SelectionContainer/SelectionData"] +[node name="SelectionData" type="MarginContainer" parent="MarginContainer/HBoxContainer/SelectionContainer"] +unique_name_in_owner = true layout_mode = 2 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 24 -[node name="Label" type="Label" parent="MarginContainer/HBoxContainer/SelectionContainer/SelectionData/VBoxContainer"] +[node name="TowerData" parent="MarginContainer/HBoxContainer/SelectionContainer/SelectionData" instance=ExtResource("5_hbytm")] +unique_name_in_owner = true layout_mode = 2 -text = "T" [node name="SpawnBox" type="PanelContainer" parent="MarginContainer/HBoxContainer"] unique_name_in_owner = true @@ -282,13 +295,17 @@ layout_mode = 2 size_flags_horizontal = 10 size_flags_vertical = 8 size_flags_stretch_ratio = 0.0 +theme = ExtResource("5_121ry") + +[node name="PanelBackgroundBlue" parent="MarginContainer/HBoxContainer/SpawnBox" instance=ExtResource("4_x1gx8")] +layout_mode = 2 [node name="MarginContainer" type="MarginContainer" parent="MarginContainer/HBoxContainer/SpawnBox"] layout_mode = 2 -theme_override_constants/margin_left = 8 -theme_override_constants/margin_top = 8 -theme_override_constants/margin_right = 8 -theme_override_constants/margin_bottom = 8 +theme_override_constants/margin_left = 16 +theme_override_constants/margin_top = 16 +theme_override_constants/margin_right = 16 +theme_override_constants/margin_bottom = 16 [node name="GridContainer" type="GridContainer" parent="MarginContainer/HBoxContainer/SpawnBox/MarginContainer"] layout_mode = 2 @@ -373,6 +390,30 @@ texture_normal = ExtResource("14_t3qlu") texture_pressed = ExtResource("5_xcxr8") texture_hover = ExtResource("6_4go2d") -[connection signal="gui_input" from="Panel/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer/BuildModeButton" to="." method="_on_build_mode_button_gui_input"] -[connection signal="gui_input" from="Panel/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2/SpawnerBoxButton" to="." method="_on_spawner_box_button_gui_input"] -[connection signal="gui_input" from="Panel/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2/PlayerListButton" to="." method="_on_player_list_button_gui_input"] +[node name="SpawnButton13" parent="MarginContainer/HBoxContainer/SpawnBox/MarginContainer/GridContainer" instance=ExtResource("3_7eaea")] +layout_mode = 2 +texture_normal = ExtResource("14_t3qlu") +texture_pressed = ExtResource("5_xcxr8") +texture_hover = ExtResource("6_4go2d") + +[node name="SpawnButton14" parent="MarginContainer/HBoxContainer/SpawnBox/MarginContainer/GridContainer" instance=ExtResource("3_7eaea")] +layout_mode = 2 +texture_normal = ExtResource("14_t3qlu") +texture_pressed = ExtResource("5_xcxr8") +texture_hover = ExtResource("6_4go2d") + +[node name="SpawnButton15" parent="MarginContainer/HBoxContainer/SpawnBox/MarginContainer/GridContainer" instance=ExtResource("3_7eaea")] +layout_mode = 2 +texture_normal = ExtResource("14_t3qlu") +texture_pressed = ExtResource("5_xcxr8") +texture_hover = ExtResource("6_4go2d") + +[node name="SpawnButton16" parent="MarginContainer/HBoxContainer/SpawnBox/MarginContainer/GridContainer" instance=ExtResource("3_7eaea")] +layout_mode = 2 +texture_normal = ExtResource("14_t3qlu") +texture_pressed = ExtResource("5_xcxr8") +texture_hover = ExtResource("6_4go2d") + +[connection signal="gui_input" from="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer/HBoxContainer/BuildModeButton" to="." method="_on_build_mode_button_gui_input"] +[connection signal="gui_input" from="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer2/HBoxContainer2/SpawnerBoxButton" to="." method="_on_spawner_box_button_gui_input"] +[connection signal="gui_input" from="Panel/MarginContainer/VBoxContainer/Container/GridContainer/MarginContainer3/HBoxContainer2/PlayerListButton" to="." method="_on_player_list_button_gui_input"] -- cgit v1.2.3