Hey, I wanted the item menu and the options, Game end, skills (etc) menu to be accessed in different ways. The former using the X key, and the latter using the C key. I was able to call the Scene Menu (the latter) by hititng the C key, but I want this menu to be closed by also hitting the C key , and I don't know how.
Basically, it works like this:
How do I go about this, really? Also, I want to change the cancel keybind to only this menu, the others can use X just fine.
Thanks in advance, and sorry for my gibberish english.
Basically, it works like this:
- Use C to open Scene Menu
- Have to use X to close menu (want to change this)
//KeyMapping
Input.keyMapper["67"] = "Menu"
Scene_Map.prototype.isMenuCalled = function() {
return Input.isTriggered('Menu') || TouchInput.isCancelled();
};
Scene_Menu.prototype.createCommandWindow = function() {
this._commandWindow = new Window_MenuCommand(0, 0);
this._commandWindow.setHandler('item', this.commandItem.bind(this));
this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('save', this.commandSave.bind(this));
this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this));
//This is the thing I wanna change, clueless about how.
this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this.addWindow(this._commandWindow);
How do I go about this, really? Also, I want to change the cancel keybind to only this menu, the others can use X just fine.
Thanks in advance, and sorry for my gibberish english.