add focus reset utility

This commit is contained in:
betalars 2025-10-29 22:20:04 +01:00
parent 2c6dd043f1
commit 929dcfa24a
1 changed files with 5 additions and 1 deletions

View File

@ -163,6 +163,7 @@ func load_user_settings():
for kategory in parsed.values(): for kategory in parsed.values():
for key in kategory.keys(): for key in kategory.keys():
if key in self:
set(key, parsed[key]) set(key, parsed[key])
else: else:
@ -317,6 +318,9 @@ func free_focus():
if focus_locked: return false if focus_locked: return false
if stage_list.size() > 0: stage_list.front().has_stage = false if stage_list.size() > 0: stage_list.front().has_stage = false
func reset_focus():
stage_list = [stage_list[-1]]
func transition_stage_to(thief: Object, lock_focus = false): func transition_stage_to(thief: Object, lock_focus = false):
focus_locked = lock_focus focus_locked = lock_focus
if stage_list.size() > 0: if stage_list.size() > 0: