Frontier-of-Hell/scenes/ui/tower_menu.tscn

124 lines
4.1 KiB
Text
Raw Normal View History

2023-10-06 11:40:11 +02:00
[gd_scene load_steps=7 format=3 uid="uid://cd5r1v6f8hahx"]
[ext_resource type="Theme" uid="uid://d4fqih4gmaixt" path="res://scenes/ui/themes/leltres.tres" id="1_s4ty6"]
2023-10-06 17:47:24 +02:00
[ext_resource type="Script" path="res://scripts/ui/tower_menu.gd" id="1_wtfbd"]
2023-10-06 11:40:11 +02:00
[ext_resource type="Texture2D" uid="uid://dql0j3rmo6lt6" path="res://assets/icons/towers/cannon-1-disabled.png" id="3_3pes3"]
[ext_resource type="Texture2D" uid="uid://rgnikuo8ht0w" path="res://assets/icons/towers/railgun-1-disabled.png" id="4_8q3ud"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_55n31"]
bg_color = Color(0.12549, 0.12549, 0.12549, 1)
2023-10-25 18:40:40 +02:00
border_color = Color(0.12549, 0.12549, 0.12549, 1)
corner_radius_top_left = 10
corner_radius_top_right = 10
corner_radius_bottom_right = 10
corner_radius_bottom_left = 10
2023-10-06 11:40:11 +02:00
corner_detail = 20
[sub_resource type="Theme" id="Theme_6r0bt"]
[node name="TowerMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
2023-10-06 17:47:24 +02:00
script = ExtResource("1_wtfbd")
2023-10-06 11:40:11 +02:00
[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 = -161.0
2023-10-25 18:40:40 +02:00
offset_top = -174.0
2023-10-06 11:40:11 +02:00
offset_right = 156.0
2023-10-25 18:40:40 +02:00
offset_bottom = 181.0
2023-10-06 11:40:11 +02:00
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_55n31")
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
2023-10-06 11:40:11 +02:00
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/margin_left = 10
theme_override_constants/margin_top = 10
theme_override_constants/margin_right = 10
theme_override_constants/margin_bottom = 10
[node name="VBoxContainer" type="VBoxContainer" parent="Panel/MarginContainer"]
layout_mode = 2
2023-10-06 11:40:11 +02:00
theme = ExtResource("1_s4ty6")
theme_override_constants/separation = 30
[node name="Top" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
[node name="MenuTitle" type="Label" parent="Panel/MarginContainer/VBoxContainer/Top"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 3
2023-10-06 11:40:11 +02:00
text = " Build/Upgrade Tower"
2023-10-25 18:40:40 +02:00
[node name="MarginContainer" type="MarginContainer" parent="Panel/MarginContainer/VBoxContainer/Top"]
layout_mode = 2
theme_override_constants/margin_right = 10
[node name="Close" type="Button" parent="Panel/MarginContainer/VBoxContainer/Top/MarginContainer"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
text = "X"
flat = true
[node name="Middle" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
alignment = 1
[node name="TowerOption" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/Middle"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
theme = SubResource("Theme_6r0bt")
texture_normal = ExtResource("3_3pes3")
[node name="TowerOption2" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/Middle"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
theme = SubResource("Theme_6r0bt")
texture_normal = ExtResource("4_8q3ud")
[node name="Bottom" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
alignment = 1
[node name="TowerName" type="Label" parent="Panel/MarginContainer/VBoxContainer/Bottom"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
text = "Cannon"
[node name="TowerName2" type="Label" parent="Panel/MarginContainer/VBoxContainer/Bottom"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
text = "Railgun"
[node name="Nether" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
alignment = 1
[node name="TowerPrice" type="Label" parent="Panel/MarginContainer/VBoxContainer/Nether"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
text = "10000"
[node name="TowerPrice2" type="Label" parent="Panel/MarginContainer/VBoxContainer/Nether"]
2023-10-06 11:40:11 +02:00
layout_mode = 2
size_flags_horizontal = 6
2023-10-06 11:40:11 +02:00
text = "20000"
2023-10-25 18:40:40 +02:00
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/Top/MarginContainer/Close" to="." method="_on_close_pressed"]
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/Middle/TowerOption" to="." method="_on_tower_option_pressed"]
[connection signal="pressed" from="Panel/MarginContainer/VBoxContainer/Middle/TowerOption2" to="." method="_on_tower_option_2_pressed"]