frame-of-mind/src/logic-scenes/main menu/Main Menu.gd

14 lines
359 B
GDScript3
Raw Normal View History

extends Panel
@onready var has_stage = true:
set(focus):
if focus:
has_stage = State.request_focus(self)
else:
has_stage = false
State.drop_own_focus(self)
2024-02-06 20:58:29 +00:00
func _ready():
theme = State.current_main_theme
State.theme_changed.connect(func change_theme(new_theme): theme = new_theme)