Adding targeting cursor when placing drone
This commit is contained in:
parent
b0583bd97f
commit
0f5640d789
4 changed files with 50 additions and 10 deletions
|
|
@ -49,8 +49,7 @@ grow_horizontal = 2
|
|||
grow_vertical = 2
|
||||
metadata/_edit_use_anchors_ = true
|
||||
|
||||
[node name="DroneControls" type="HBoxContainer" parent="DroneManager/Control"]
|
||||
unique_name_in_owner = true
|
||||
[node name="MarginContainer" type="MarginContainer" parent="DroneManager/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 7
|
||||
anchor_left = 0.5
|
||||
|
|
@ -62,31 +61,35 @@ 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/DroneControls"]
|
||||
[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/DroneControls"]
|
||||
[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/DroneControls"]
|
||||
[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/DroneControls"]
|
||||
[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/DroneControls/SpawnDirector" to="DroneManager" method="_on_spawn_director_pressed"]
|
||||
[connection signal="pressed" from="DroneManager/Control/DroneControls/SpawnCollector" to="DroneManager" method="_on_spawn_collector_pressed"]
|
||||
[connection signal="pressed" from="DroneManager/Control/DroneControls/SpawnDistractor" to="DroneManager" method="_on_spawn_distractor_pressed"]
|
||||
[connection signal="pressed" from="DroneManager/Control/DroneControls/SpawnDancer" to="DroneManager" method="_on_spawn_dancer_pressed"]
|
||||
[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"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue