2022-10-22 02:10:01 +00:00
|
|
|
extends Panel
|
|
|
|
|
|
|
|
|
|
|
|
onready var global_ints = $"/root/GlobalInts"
|
|
|
|
|
|
|
|
|
2022-10-28 08:28:42 +00:00
|
|
|
func _on_OkButton_pressed():
|
|
|
|
if $"%NameLine".text and $"NameContainer/ObserverLine".text and $"NameContainer/ObservedActivity".text != "":
|
2022-10-22 02:10:01 +00:00
|
|
|
$"%InstructionPanel".visible = true
|
|
|
|
$"%NameChangePanel".visible = false
|
|
|
|
global_ints.observed_person_name = $"%NameLine".text
|
2022-10-28 08:28:42 +00:00
|
|
|
global_ints.observer_person_name = $"NameContainer/ObserverLine".text
|
|
|
|
global_ints.observed_activity = $"NameContainer/ObservedActivity".text
|
2022-10-22 02:10:01 +00:00
|
|
|
else:
|
|
|
|
$"%ObservedNameLabel".visible = false
|
|
|
|
$"%WarningLabel".visible = true
|