More work on registering via FSM

This commit is contained in:
2025-07-25 18:38:47 -04:00
parent dc30d1b15c
commit c0a2c058ba
14 changed files with 57 additions and 12 deletions

View File

@@ -9,6 +9,9 @@ var end_shift_confirm_template = preload("res://end_shift_confirmation.tscn")
func _ready() -> void:
end_shift_confirmation = end_shift_confirm_template.instantiate()
add_child(end_shift_confirmation)
var file =FileAccess.open("res://name.txt",FileAccess.READ)
var text =file.get_line()
var nmnames = text.remove_chars(" ").split(",")
func _process(delta: float) -> void:
if active and Input.is_action_just_pressed("switch modes"):
@@ -28,3 +31,6 @@ func setup_visitor_ui(spawner: VisitorSpawner)-> void:
func end_shift() -> void:
active = false
panel.switch_panel(active)
func notice(msg : String, time : float = 1) -> void:
panel.notice(msg, time)