[gd_scene load_steps=4 format=3 uid="uid://ct3c16xm33r2a"]

[ext_resource type="Script" path="res://scenes/scripts/drone_manager.gd" id="1_jkvsa"]
[ext_resource type="Theme" uid="uid://cpkvret5gi66h" path="res://resources/theme/game_theme.tres" id="2_l0re0"]
[ext_resource type="Script" path="res://scenes/scripts/drone_controls.gd" id="3_idi5h"]

[node name="DroneManager" type="Node2D" groups=["dronemanager"]]
z_index = 50
script = ExtResource("1_jkvsa")

[node name="SpawnedDrones" type="Node2D" parent="."]

[node name="Control" type="Control" parent="."]
top_level = true
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
metadata/_edit_use_anchors_ = true

[node name="MarginContainer" type="MarginContainer" parent="Control"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -155.5
offset_top = -31.0
offset_right = 155.5
grow_horizontal = 2
grow_vertical = 0
theme = ExtResource("2_l0re0")
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="DroneControls" type="HBoxContainer" parent="Control/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 10
alignment = 1
script = ExtResource("3_idi5h")

[node name="SpawnDancer" type="Button" parent="Control/MarginContainer/DroneControls"]
unique_name_in_owner = true
layout_mode = 2
text = "Dancer"

[node name="SpawnCollector" type="Button" parent="Control/MarginContainer/DroneControls"]
unique_name_in_owner = true
layout_mode = 2
text = "Collector"

[node name="SpawnDirector" type="Button" parent="Control/MarginContainer/DroneControls"]
unique_name_in_owner = true
layout_mode = 2
text = "Director"

[node name="SpawnDistractor" type="Button" parent="Control/MarginContainer/DroneControls"]
unique_name_in_owner = true
layout_mode = 2
text = "Distractor"

[connection signal="mouse_entered" from="Control/MarginContainer/DroneControls/SpawnDancer" to="." method="_on_spawn_dancer_mouse_entered"]
[connection signal="mouse_exited" from="Control/MarginContainer/DroneControls/SpawnDancer" to="." method="_on_button_mouse_exited"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDancer" to="." method="_on_spawn_dancer_pressed"]
[connection signal="mouse_entered" from="Control/MarginContainer/DroneControls/SpawnCollector" to="." method="_on_spawn_collector_mouse_entered"]
[connection signal="mouse_exited" from="Control/MarginContainer/DroneControls/SpawnCollector" to="." method="_on_button_mouse_exited"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnCollector" to="." method="_on_spawn_collector_pressed"]
[connection signal="mouse_entered" from="Control/MarginContainer/DroneControls/SpawnDirector" to="." method="_on_spawn_director_mouse_entered"]
[connection signal="mouse_exited" from="Control/MarginContainer/DroneControls/SpawnDirector" to="." method="_on_button_mouse_exited"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDirector" to="." method="_on_spawn_director_pressed"]
[connection signal="mouse_entered" from="Control/MarginContainer/DroneControls/SpawnDistractor" to="." method="_on_spawn_distractor_mouse_entered"]
[connection signal="mouse_exited" from="Control/MarginContainer/DroneControls/SpawnDistractor" to="." method="_on_button_mouse_exited"]
[connection signal="pressed" from="Control/MarginContainer/DroneControls/SpawnDistractor" to="." method="_on_spawn_distractor_pressed"]
