Consider the following:
var oldSceneMenu = Scene_Menu.prototype.createCommandWindow;Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0,0); this._commandWindow.setHandler('example', this.commandExample.bind(this)); oldSceneMenu.call(this);}Scene_Menu.prototype.commandExample = function() { console.log('sadsad');};When I open the menu I see all the other stuff but I don't see my example item in the menu. What am I doing wrong?
var oldSceneMenu = Scene_Menu.prototype.createCommandWindow;Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0,0); this._commandWindow.setHandler('example', this.commandExample.bind(this)); oldSceneMenu.call(this);}Scene_Menu.prototype.commandExample = function() { console.log('sadsad');};When I open the menu I see all the other stuff but I don't see my example item in the menu. What am I doing wrong?