2023-04-15 14:07:01 +00:00
|
|
|
extends Panel
|
|
|
|
|
|
2026-01-12 17:39:34 +00:00
|
|
|
@onready var focused = true:
|
2024-09-15 09:30:31 +00:00
|
|
|
set(focus):
|
|
|
|
|
if focus:
|
2026-01-12 17:39:34 +00:00
|
|
|
focused = State.request_focus(self)
|
2024-09-15 09:30:31 +00:00
|
|
|
else:
|
2026-01-12 17:39:34 +00:00
|
|
|
focused = false
|
2024-09-15 09:30:31 +00:00
|
|
|
State.drop_own_focus(self)
|
2024-02-06 20:58:29 +00:00
|
|
|
|
|
|
|
|
func _ready():
|
2024-09-15 09:30:31 +00:00
|
|
|
theme = State.current_main_theme
|
|
|
|
|
State.theme_changed.connect(func change_theme(new_theme): theme = new_theme)
|