mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 07:28:14 +00:00
couple things, icr
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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:
|
||||
|
Reference in New Issue
Block a user