123 lines
4.1 KiB
Text
123 lines
4.1 KiB
Text
[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"]
|
|
[ext_resource type="Script" path="res://scripts/ui/tower_menu.gd" id="1_wtfbd"]
|
|
[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)
|
|
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
|
|
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
|
|
script = ExtResource("1_wtfbd")
|
|
|
|
[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
|
|
offset_top = -174.0
|
|
offset_right = 156.0
|
|
offset_bottom = 181.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_styles/panel = SubResource("StyleBoxFlat_55n31")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="Panel"]
|
|
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
|
|
theme = ExtResource("1_s4ty6")
|
|
theme_override_constants/separation = 30
|
|
|
|
[node name="Top" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
|
|
[node name="MenuTitle" type="Label" parent="Panel/MarginContainer/VBoxContainer/Top"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
text = " Build/Upgrade Tower"
|
|
|
|
[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"]
|
|
layout_mode = 2
|
|
text = "X"
|
|
flat = true
|
|
|
|
[node name="Middle" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="TowerOption" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/Middle"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
theme = SubResource("Theme_6r0bt")
|
|
texture_normal = ExtResource("3_3pes3")
|
|
|
|
[node name="TowerOption2" type="TextureButton" parent="Panel/MarginContainer/VBoxContainer/Middle"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
theme = SubResource("Theme_6r0bt")
|
|
texture_normal = ExtResource("4_8q3ud")
|
|
|
|
[node name="Bottom" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="TowerName" type="Label" parent="Panel/MarginContainer/VBoxContainer/Bottom"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
text = "Cannon"
|
|
|
|
[node name="TowerName2" type="Label" parent="Panel/MarginContainer/VBoxContainer/Bottom"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
text = "Railgun"
|
|
|
|
[node name="Nether" type="HBoxContainer" parent="Panel/MarginContainer/VBoxContainer"]
|
|
layout_mode = 2
|
|
alignment = 1
|
|
|
|
[node name="TowerPrice" type="Label" parent="Panel/MarginContainer/VBoxContainer/Nether"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
text = "10000"
|
|
|
|
[node name="TowerPrice2" type="Label" parent="Panel/MarginContainer/VBoxContainer/Nether"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
text = "20000"
|
|
|
|
[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"]
|