From 101dca7a31d07322a6b99dc86d46cf0455a7448d Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Wed, 8 Jun 2022 22:46:30 +0100 Subject: [PATCH] =?UTF-8?q?Fixed=20the=20Back=20input=20not=20being=20able?= =?UTF-8?q?=20to=20close=20a=20displayed=20message=20in=20the=20Pok=C3=A9?= =?UTF-8?q?=20Mart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Data/Scripts/016_UI/020_UI_PokeMart.rb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Data/Scripts/016_UI/020_UI_PokeMart.rb b/Data/Scripts/016_UI/020_UI_PokeMart.rb index 116c7565d..ae09c384d 100644 --- a/Data/Scripts/016_UI/020_UI_PokeMart.rb +++ b/Data/Scripts/016_UI/020_UI_PokeMart.rb @@ -388,8 +388,8 @@ class PokemonMart_Scene return if brief pbRefresh if i == 0 end - if Input.trigger?(Input::USE) && cw.busy? - cw.resume + if Input.trigger?(Input::USE) || Input.trigger?(Input::BACK) + cw.resume if cw.busy? end return if i >= Graphics.frame_rate * 3 / 2 i += 1 if !cw.busy? @@ -414,9 +414,11 @@ class PokemonMart_Scene yielded = true end pbRefresh if !cw.busy? && wasbusy - if Input.trigger?(Input::USE) && cw.resume && !cw.busy? - @sprites["helpwindow"].visible = false - return + if Input.trigger?(Input::USE) || Input.trigger?(Input::BACK) + if cw.resume && !cw.busy? + @sprites["helpwindow"].visible = false + break + end end end end