couple things, icr

This commit is contained in:
JHDev2006
2025-09-25 22:54:23 +01:00
parent 7b5399147f
commit 40c2c04fcd
12 changed files with 347 additions and 283 deletions

View File

@@ -184,6 +184,8 @@ func slot_selected(idx := 0) -> void:
selected_level = idx
update_pb()
update_score()
if Settings.file.audio.extra_sfx == 1:
AudioManager.play_global_sfx("menu_move")
func cleanup() -> void:
await get_tree().process_frame

View File

@@ -6,11 +6,14 @@ var active := false
var selected_index := 0
var old_quest := false
func _process(_delta: float) -> void:
if active:
handle_input()
func open() -> void:
old_quest = Global.second_quest
show()
await get_tree().process_frame
[%FirstQuest, %SecondQuest][int(Global.second_quest)].grab_focus()
@@ -21,7 +24,7 @@ func handle_input() -> void:
select()
close()
elif Input.is_action_just_pressed("ui_back"):
Global.second_quest = false
Global.second_quest = old_quest
close()
cancelled.emit()
return

View File

@@ -82,6 +82,8 @@ func handle_input() -> void:
func slot_focused(idx := 0) -> void:
selected_world = idx
if Settings.file.audio.extra_sfx == 1:
AudioManager.play_global_sfx("menu_move")
func select_world() -> void:
if owner is Level: