MenuInputControlMainMenu
◆Comment:=======================================
: :MOUSE INPUT
: :=======================================
◆If:Script:pictureAction(11, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 11
◆
:End
◆If:Script:pictureAction(12, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 12
◆
:End
◆If:Script:pictureAction(13, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 13
◆
:End
◆If:Script:pictureAction(14, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 14
◆
:End
◆If:Script:pictureAction(15, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 15
◆
:End
◆If:Script:pictureAction(16, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 16
◆
:End
◆If:Script:pictureAction(17, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 17
◆
:End
◆If:Script:pictureAction(18, 'hover')
◆Control Variables:#0113 SelectedButtonMainMenu = 18
◆
:End
◆Comment:=======================================
: :KEYBOARD GAMEPAD INPUT
: :=======================================
◆If:Script:Input.isTriggered('down')
◆Control Variables:#0113 SelectedButtonMainMenu += 1
◆
:Else
◆If:Script:Input.isTriggered('up')
◆Control Variables:#0113 SelectedButtonMainMenu -= 1
◆
:End
◆
:End
◆If:SelectedButtonMainMenu < 11
◆Comment:use 2 so that the background picture num1 is not selected
◆Control Variables:#0113 SelectedButtonMainMenu = 11
◆
:End
◆Comment:As there is maximum 9 icons
◆If:SelectedButtonMainMenu > 18
◆Control Variables:#0113 SelectedButtonMainMenu = 11
◆
:End
◆Comment:=======================================
: :TRIGGER CONTROL MOUSE
: :=======================================
◆If:Script:pictureAction(11, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Item
◆
:End
◆If:Script:pictureAction(12, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Save
◆
:End
◆If:Script:pictureAction(13, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Options
◆
:End
◆If:Script:pictureAction(14, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Status
◆
:End
◆If:Script:pictureAction(15, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Scene_Skill
◆Script:Scene_MenuBase.prototype.nextActor
: :SceneManager.push(Scene_Skill)
◆
:End
◆If:Script:pictureAction(16, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Scene_Quest
◆Script:SceneManager.push(Scene_Quest)
◆
:End
◆If:Script:pictureAction(17, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene GameEnd
◆
:End
◆If:Script:pictureAction(18, 'click')
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Skill
◆
:End
◆Comment:=======================================
: :TRIGGER CONTROL KEYBOARD GAMEPAD
: :=======================================
◆If:Button [OK] is pressed down
◆If:SelectedButtonMainMenu = 11
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Item
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 12
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Save
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 13
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Options
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 14
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Status
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 15
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Scene_Skill
◆Script:Scene_MenuBase.prototype.nextActor
: :SceneManager.push(Scene_Skill)
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 16
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Scene_Quest
◆Script:SceneManager.push(Scene_Quest)
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 17
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene GameEnd
◆Wait:10 frames
◆
:End
◆If:SelectedButtonMainMenu = 18
◆Play SE:Cancel1 (60, 100, 0)
◆Plugin Command:CallScene Skill
◆Wait:10 frames
◆
:End
◆
:End
◆Comment:=======================================
: :CLOSE MENU
: :=======================================
◆If:Script:Input.isTriggered('t')
◆Play SE:Equip2 (100, 90, 0)
◆Plugin Command:EraseAllText 0
◆Plugin Command:DeleteAllPictures
◆Wait:7 frames
◆Control Switches:#0024 OpenMenuControlMainMenu = ON
◆Control Switches:#0026 MenuInputControlMainMenu = OFF
◆
:End