From 355b2d8528346e5e759076a11fd7ea7b9f366d48 Mon Sep 17 00:00:00 2001 From: mshirt Date: Sat, 17 Dec 2016 00:53:37 -0600 Subject: [PATCH] Moving the Cancel higher This change prevents the player from opening the fast travel menu and the inventory from the Menu at the same time. --- scripts/Window_MainMenu.rb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/scripts/Window_MainMenu.rb b/scripts/Window_MainMenu.rb index b8c6706..28f8adc 100644 --- a/scripts/Window_MainMenu.rb +++ b/scripts/Window_MainMenu.rb @@ -103,6 +103,18 @@ class Window_MainMenu < Window_Selectable return end + + # Cancel menu + if Input.trigger?(Input::CANCEL) || + Input.trigger?(Input::MENU) || + Input.trigger?(Input::ITEMS) + unless Input.trigger?(Input::ITEMS) + $game_system.se_play($data_system.cancel_se) + end + @fade_out = true + return + end + # Select menu item if Input.trigger?(Input::ACTION) self.active = false @@ -129,15 +141,5 @@ class Window_MainMenu < Window_Selectable return end - # Cancel menu - if Input.trigger?(Input::CANCEL) || - Input.trigger?(Input::MENU) || - Input.trigger?(Input::ITEMS) - unless Input.trigger?(Input::ITEMS) - $game_system.se_play($data_system.cancel_se) - end - @fade_out = true - return - end end end