mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Fixed the Back input not being able to close a displayed message in the Poké Mart
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user