Fixed the Back input not being able to close a displayed message in the Poké Mart

This commit is contained in:
Maruno17
2022-06-08 22:46:30 +01:00
parent 038be447fb
commit 101dca7a31

View File

@@ -388,8 +388,8 @@ class PokemonMart_Scene
return if brief return if brief
pbRefresh if i == 0 pbRefresh if i == 0
end end
if Input.trigger?(Input::USE) && cw.busy? if Input.trigger?(Input::USE) || Input.trigger?(Input::BACK)
cw.resume cw.resume if cw.busy?
end end
return if i >= Graphics.frame_rate * 3 / 2 return if i >= Graphics.frame_rate * 3 / 2
i += 1 if !cw.busy? i += 1 if !cw.busy?
@@ -414,9 +414,11 @@ class PokemonMart_Scene
yielded = true yielded = true
end end
pbRefresh if !cw.busy? && wasbusy pbRefresh if !cw.busy? && wasbusy
if Input.trigger?(Input::USE) && cw.resume && !cw.busy? if Input.trigger?(Input::USE) || Input.trigger?(Input::BACK)
@sprites["helpwindow"].visible = false if cw.resume && !cw.busy?
return @sprites["helpwindow"].visible = false
break
end
end end
end end
end end