Station Move handles disabled when not in build mode

This commit is contained in:
JonShard
2026-08-02 12:41:02 +02:00
parent 10bb7cd5bf
commit 1117d90da6
6 changed files with 42 additions and 11 deletions
+12 -1
View File
@@ -5,6 +5,10 @@ func _unhandled_input(event: InputEvent) -> void:
get_tree().quit()
if event.is_action_pressed("satisfy_table_orders"):
satisfy_table_orders()
if event.is_action_pressed("set_building_mode"):
set_buidling_mode()
if event.is_action_pressed("set_running_mode"):
set_running_mode()
# Finds any node of class/type Table and calls satisfyAllOrders()
@@ -17,4 +21,11 @@ func satisfy_table_orders() -> void:
node.satisfyAllOrders()
func set_buidling_mode():
print("Global key event: Setting building mode")
GameManager.game_state = GameManager.GameState.BUILDING
func set_running_mode():
print("Global key event: Setting running mode")
GameManager.game_state = GameManager.GameState.RUNNING