[gd_scene load_steps=7 format=3 uid="uid://mk5n0hrwk4yi"]

[ext_resource type="Script" path="res://scenes/scripts/test_level.gd" id="1_lgt1m"]
[ext_resource type="PackedScene" uid="uid://dyu4mucawjlu6" path="res://entities/Beehive.tscn" id="2_5ueyo"]
[ext_resource type="Script" path="res://scenes/scripts/drone_manager.gd" id="2_474nc"]
[ext_resource type="Script" path="res://scenes/scripts/bee_spawner.gd" id="2_qqqq4"]
[ext_resource type="Script" path="res://scenes/scripts/drone_controls.gd" id="3_rqkyv"]

[sub_resource type="CircleShape2D" id="CircleShape2D_usqp5"]
radius = 142.316

[node name="TestLevel" type="Node2D"]
script = ExtResource("1_lgt1m")

[node name="Background" type="Polygon2D" parent="."]
position = Vector2(52, -26)
color = Color(0.329412, 0.494118, 0.392157, 1)
polygon = PackedVector2Array(-141, -86, 1456, -97, 1337, 753, -193, 771)

[node name="Beehive" parent="." instance=ExtResource("2_5ueyo")]
position = Vector2(163, 489)

[node name="Flower" type="Polygon2D" parent="."]
position = Vector2(278, -97)
color = Color(0.301961, 0.607843, 0.901961, 1)
polygon = PackedVector2Array(752, 145, 875, 200, 893, 272, 866, 359, 781, 427, 715, 362, 659, 226)

[node name="Area2D" type="Area2D" parent="Flower" groups=["flowers"]]
position = Vector2(777.707, 282)
collision_layer = 7
collision_mask = 7

[node name="CollisionShape2D" type="CollisionShape2D" parent="Flower/Area2D"]
shape = SubResource("CircleShape2D_usqp5")

[node name="Label" type="Label" parent="Flower"]
offset_left = 721.0
offset_top = 243.0
offset_right = 852.0
offset_bottom = 266.0
text = "Flower patch bro"

[node name="Pesticide" type="Polygon2D" parent="."]
position = Vector2(74.7948, -103.963)
scale = Vector2(0.851611, 0.815599)
color = Color(0.682353, 0.137255, 0.203922, 1)
polygon = PackedVector2Array(441, 122, 520, 54, 548, 154, 625, 114, 593, 234, 686, 281, 581, 325, 605, 472, 512, 363, 399, 468, 429, 311, 239, 362, 322, 226, 152, 92, 345, 130, 346, 15)

[node name="Dog" type="Polygon2D" parent="."]
position = Vector2(-354, 53)
color = Color(0.803922, 0.407843, 0.239216, 1)
polygon = PackedVector2Array(819, 301, 866, 278, 888, 364, 842, 319, 832, 373, 806, 423, 775, 424, 754, 377, 762, 319, 728, 360, 739, 263, 765, 284)

[node name="BeeSpawner" type="Node2D" parent="."]
script = ExtResource("2_qqqq4")

[node name="DroneManager" type="Node2D" parent="." groups=["dronemanager"]]
unique_name_in_owner = true
script = ExtResource("2_474nc")

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

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

[node name="MarginContainer" type="MarginContainer" parent="DroneManager/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

[node name="DroneControls" type="HBoxContainer" parent="DroneManager/Control/MarginContainer"]
unique_name_in_owner = true
layout_mode = 2
size_flags_vertical = 10
alignment = 1
script = ExtResource("3_rqkyv")

[node name="SpawnDirector" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a director drone, these are the main drones that define the path bees should follow. The order bees should visit these drones can be defined by clicking on them."
text = "Director"

[node name="SpawnCollector" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a drone that encourages bees to collect pollen near this area."
text = "Collector"

[node name="SpawnDistractor" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Place a distracting drone that will (hopefully) divert threats attention so they ignore the bees."
text = "Distractor"

[node name="SpawnDancer" type="Button" parent="DroneManager/Control/MarginContainer/DroneControls"]
layout_mode = 2
tooltip_text = "Spawn a dancing drone that will encourage bees to leave the hive. Best to put this near to the hive.	"
text = "Dancer"

[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDirector" to="DroneManager" method="_on_spawn_director_pressed"]
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnCollector" to="DroneManager" method="_on_spawn_collector_pressed"]
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDistractor" to="DroneManager" method="_on_spawn_distractor_pressed"]
[connection signal="pressed" from="DroneManager/Control/MarginContainer/DroneControls/SpawnDancer" to="DroneManager" method="_on_spawn_dancer_pressed"]
