How to disable the menu if the triggerbutton cancel is touch on picture common events for mobile?

Here is the image 
menu.png
 


The triggerbutton cancel is for the "B" picture events and "A" picture events is for the accept and the START picture events is for the menu. Can someone teach me how to disable the menu if I touch or click the triggerbutton cancel "B". All I want to happen is when I clicked the "start" picture events it will only show the menu. I am using YEP_PicturecommonEvents. Thank you!! 
On the cellphone right now so can't check... but even if there is not an option on the system tab of the database you can do it in events.
@Waterguy how? can u teach me?
@kierre this is somewhat hard to understand, so plainly put you want the "Cancel" function which is usually the x button on keyboard and displayed as B here to not show the menu as well correct?
@Leon Kennedy Yup. Especially on mobile phone. I don't wanna see the menu If I click or touch the B button. It only shows the menu if touch the start button.
@Leon Kennedy Yup. Especially on mobile phone. I don't wanna see the menu If I click or touch the B button. It only shows the menu if touch the start button.

Okay you can try this, yanfly might have override functions that will make this not work so just use it as a plugin and disable if it messes something up.


View attachment rpg_core.js
@Leon KennedyIt brings error  
@Leon Kennedy Yup. Especially on mobile phone. I don't wanna see the menu If I click or touch the B button. It only shows the menu if touch the start button.

Yep then this is something that has to be taken up with someone more familiar with yanflys script, yanfly also answer questions on their thread a lot. In a stock game that works as it takes the "cancel" gamepad function that is missing from keyboard functions for some odd reason. The buttons are labeled "escape" yet have dual functions of also going to menu that somewhat make no sense especially if it can use gamepad commands also anyways sorry about that.


But that is the question is how you would emulate the gamepad "cancel" function instead of the standard "escape" keyboard function as B under that script so at least the solution is known i just dont know what to do to get there.
@Yanfly Hi yanfly.. do u have any solution for this? thank u so much 🙂
Ok... quick question. Is your game for mobile only?


If so, just put the disable menu command in an Autorun.


If not... you'll need a quick plugin that turns on a switch if it  on mobile or something. And put a fork to check if it is on.


Because really, disabling the menu opening when you click the cancel button is there since before they allowed scripts.
Ok... quick question. Is your game for mobile only?


If so, just put the disable menu command in an Autorun.


If not... you'll need a quick plugin that turns on a switch if it  on mobile or something. And put a fork to check if it is on.


Because really, disabling the menu opening when you click the cancel button is there since before they allowed scripts.

Wouldn't that go for all buttons that access menu though and not just one?
Yes, but those are all Cancel, aren't they?


It can still be called by other means. Like the call menu command. It is how we did custom menus in 2k/3 when there weren't official translations yet.


I am assuming the button to call the menu uses something like a script version of the call menu command, so I doubt it will be affected.


Anyway, I just arrived home, so I'll download the plugin to try it. But from the description... you just make the menu button's common event use the call menu command (Open Menu Screen, third page, fourth on the left) and it will appear. Then add at the start of the game an autorun event, may be also your intro one, that uses the Change Menu Access command to disable the menu (Change Menu Access, also third page, sixth command on the second box on the left (System Settings))


[UPDATE]


Just checked and, yes, disabling calling the menu and then making the menu button call the menu through the event works, just like it did in the 2k/3 days.


@kierre, hope the description answered your question, else I can explain in more details.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-disable-the-menu-if-the-triggerbutton-cancel-is-touch-on-picture-common-events-for-mobile.68495/