Update Dog entity with new animations, textures, and highlight feature. Adjust Flower rotation. Decrease level 4 par time. Add outline functionality to Drone Manager for Dog entity highlighting.
This commit is contained in:
parent
11f8c1d815
commit
6e6a231300
5 changed files with 61 additions and 6 deletions
|
|
@ -9,6 +9,7 @@ var director_drones : Array = [] # List of all director drones in the world
|
|||
@onready var rules = get_parent().get_node("RulesComponent")
|
||||
@onready var beehive = get_parent().get_node("Beehive")
|
||||
@onready var flowers = get_parent().get_node("Flowers")
|
||||
@onready var dog = null
|
||||
@onready var drone_controls = %DroneControls
|
||||
@onready var ui_controls = get_parent().get_node("UiComponent")
|
||||
@onready var spawned_drones_container = get_node("SpawnedDrones")
|
||||
|
|
@ -31,6 +32,10 @@ func _ready():
|
|||
if !rules.game_rules.distractor_enabled:
|
||||
%SpawnDistractor.visible = false
|
||||
|
||||
# dog = get_parent().get_node("Dog")
|
||||
if get_parent().has_node("Dog"):
|
||||
dog = get_parent().get_node("Dog")
|
||||
|
||||
## Function to detect right click event
|
||||
func _input(event) -> void:
|
||||
if spawning_drone:
|
||||
|
|
@ -104,6 +109,8 @@ func _on_spawn_collector_pressed() -> void:
|
|||
place_drone("collector")
|
||||
|
||||
func _on_spawn_distractor_pressed() -> void:
|
||||
if dog:
|
||||
dog.show_outline()
|
||||
place_drone("distractor")
|
||||
|
||||
func _on_spawn_dancer_pressed() -> void:
|
||||
|
|
@ -122,6 +129,8 @@ func _on_spawn_collector_mouse_entered():
|
|||
|
||||
func _on_spawn_distractor_mouse_entered():
|
||||
reset_node_highlights()
|
||||
if dog:
|
||||
dog.show_outline()
|
||||
ui_controls.show_help_text("Help_Drone_Placement_Distractor")
|
||||
|
||||
func _on_spawn_dancer_mouse_entered():
|
||||
|
|
@ -177,4 +186,7 @@ func get_collector():
|
|||
func reset_node_highlights():
|
||||
ui_controls.hide_help_text()
|
||||
beehive.hide_outline()
|
||||
flowers.hide_outline()
|
||||
flowers.hide_outline()
|
||||
|
||||
if dog:
|
||||
dog.hide_outline()
|
||||
Loading…
Add table
Add a link
Reference in a new issue