Update drone placement logic, level loading functionality, and UI behavior. Set visibility of labels, manage mouse cursor changes, and handle game state for placing drones.

This commit is contained in:
Dan 2024-05-10 18:49:51 +01:00
parent b6cdb68b4e
commit f9865cf1fa
8 changed files with 31 additions and 13 deletions

View file

@ -82,6 +82,7 @@ func place_drone(drone_type : String) -> void:
drone_controls.disable_buttons()
Log.pr("Placing " + drone_type + "...")
spawning_drone = true
GameState.placing_drone = true # This should probably be rolled into the above line
spawning_type = drone_type
func cancel_spawning() -> void:
@ -89,6 +90,7 @@ func cancel_spawning() -> void:
drone_controls.reset_button_focus()
drone_controls.enable_buttons()
spawning_drone = false
GameState.placing_drone = false
spawning_type = ""
reset_node_highlights()