TowerDefense/addons/LevelEditor/wave_maker.tscn
Varylios 23e0c03fc0 feat: add autoloader for menu level buttons
fix: wave not restartable when winned
clean: remove useless files + warnings
2025-09-03 03:44:44 +02:00

129 lines
4.2 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://dh24t8804isms"]
[ext_resource type="Script" uid="uid://27y0jliv6ckx" path="res://addons/LevelEditor/WaveMaker.gd" id="1_usfft"]
[ext_resource type="Script" uid="uid://b47p2u458hsn0" path="res://addons/LevelEditor/UI/CustomOptionButton.gd" id="2_xjxpq"]
[ext_resource type="Script" uid="uid://bpv75ucqoy446" path="res://addons/LevelEditor/UI/CustomLineEdit.gd" id="3_qw7ts"]
[node name="Menu" type="MarginContainer"]
offset_right = 885.0
offset_bottom = 574.0
size_flags_horizontal = 3
size_flags_vertical = 3
theme_override_constants/margin_left = 20
theme_override_constants/margin_top = 20
script = ExtResource("1_usfft")
[node name="VBC" type="VBoxContainer" parent="."]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 3
[node name="HBC" type="HBoxContainer" parent="VBC"]
layout_mode = 2
[node name="LevelSelect" type="OptionButton" parent="VBC/HBC"]
layout_mode = 2
selected = 0
allow_reselect = true
item_count = 2
popup/item_0/text = "level_1"
popup/item_0/id = 0
popup/item_1/text = "level_2"
popup/item_1/id = 1
script = ExtResource("2_xjxpq")
metadata/_custom_type_script = "uid://b47p2u458hsn0"
[node name="NewLevel" type="Button" parent="VBC/HBC"]
visible = false
layout_mode = 2
text = "Nouveau Niveau"
[node name="Save" type="Button" parent="VBC/HBC"]
layout_mode = 2
text = "Sauvegarder"
[node name="RefreshUI" type="Button" parent="VBC/HBC"]
layout_mode = 2
text = "Rafraichir"
[node name="HBC2" type="HBoxContainer" parent="VBC"]
layout_mode = 2
[node name="Add wave" type="Button" parent="VBC/HBC2"]
layout_mode = 2
text = "Ajouter une vague"
[node name="RemoveWave" type="Button" parent="VBC/HBC2"]
layout_mode = 2
text = "Suprimer la vague"
[node name="HBC3" type="HBoxContainer" parent="VBC"]
layout_mode = 2
[node name="AutoLaunchLevel" type="CheckButton" parent="VBC/HBC3"]
layout_mode = 2
[node name="Label" type="Label" parent="VBC/HBC3"]
layout_mode = 2
text = "Lancer le niveau auto. "
[node name="HBC4" type="HBoxContainer" parent="VBC"]
layout_mode = 2
[node name="SpawnQty" type="LineEdit" parent="VBC/HBC4"]
layout_mode = 2
text = "1"
script = ExtResource("3_qw7ts")
metadata/_custom_type_script = "uid://bpv75ucqoy446"
[node name="Label" type="Label" parent="VBC/HBC4"]
layout_mode = 2
text = " Nombre de voies"
[node name="HBC5" type="HBoxContainer" parent="VBC"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
[node name="TowerSelector" type="ItemList" parent="VBC/HBC5"]
layout_mode = 2
size_flags_horizontal = 3
select_mode = 2
allow_search = false
auto_width = true
auto_height = true
item_count = 7
max_columns = 8
item_0/text = " PIERRE "
item_1/text = " ALINE "
item_2/text = " MAXENCE "
item_3/text = " VICTORIA "
item_4/text = " EVAN "
item_5/text = " ALEX "
item_6/text = " GERALDINE "
[node name="Margin2" type="MarginContainer" parent="VBC"]
custom_minimum_size = Vector2(0, 30)
layout_mode = 2
[node name="ScrollContainer" type="ScrollContainer" parent="VBC"]
layout_mode = 2
size_flags_vertical = 3
[node name="WaveContainer" type="TabContainer" parent="VBC/ScrollContainer"]
layout_mode = 2
size_flags_vertical = 3
current_tab = 0
clip_tabs = false
drag_to_rearrange_enabled = true
[connection signal="onValueChanged" from="VBC/HBC/LevelSelect" to="." method="selectLevel"]
[connection signal="pressed" from="VBC/HBC/NewLevel" to="." method="_on_new_level_pressed"]
[connection signal="pressed" from="VBC/HBC/Save" to="." method="_on_save_pressed"]
[connection signal="pressed" from="VBC/HBC/RefreshUI" to="." method="resetApp"]
[connection signal="pressed" from="VBC/HBC2/Add wave" to="." method="addWave"]
[connection signal="pressed" from="VBC/HBC2/RemoveWave" to="." method="removeWave"]
[connection signal="toggled" from="VBC/HBC3/AutoLaunchLevel" to="." method="_on_auto_launch_wave_toggled"]
[connection signal="valueHasChanged" from="VBC/HBC4/SpawnQty" to="." method="onSpawnQtyChange"]
[connection signal="multi_selected" from="VBC/HBC5/TowerSelector" to="." method="onSelectedTowerChange"]
[connection signal="active_tab_rearranged" from="VBC/ScrollContainer/WaveContainer" to="." method="changeWaveOrder"]
[connection signal="tab_changed" from="VBC/ScrollContainer/WaveContainer" to="." method="tabFocusHaschanged"]