mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
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.
This commit is contained in:
parent
ecd0d92d30
commit
355b2d8528
1 changed files with 12 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue