提问,如何让暂停菜单只显示物品、存档和退出游戏?
rpgmaker吧
全部回复
仅看楼主
level 2
鹿否Deer♬ 楼主
只想用MV做一个小的解谜游戏,但是暂停菜单会显示人物状态还有金钱。找了很多插件也都是修改它们的布局而删不掉这些内容。希望大佬帮帮忙!
2021年02月09日 09点02分 1
level 6
Scene_Menu.prototype.createCommandWindow = function() { const rect = this.commandWindowRect(); const commandWindow = new Window_MenuCommand(rect); commandWindow.setHandler("item", this.commandItem.bind(this)); commandWindow.setHandler("save", this.commandSave.bind(this)); commandWindow.setHandler("gameEnd", this.commandGameEnd.bind(this)); commandWindow.setHandler("cancel", this.popScene.bind(this)); this.addWindow(commandWindow); this._commandWindow = commandWindow;};
Window_MenuCommand.prototype.makeCommandList = function() { this.addMainCommands(); this.addSaveCommand(); this.addGameEndCommand();};
Window_MenuCommand.prototype.addMainCommands = function() { const enabled = this.areMainCommandsEnabled(); if (this.needsCommand("item")) { this.addCommand(TextManager.item, "item", enabled); }};
2021年02月09日 11点02分 2
自己建个.js文件把上面的拷贝进去应该可以。
2021年02月09日 11点02分
太感谢了[泪]
2021年02月09日 11点02分
但是好像不行,我再研究一下,再次感谢
2021年02月09日 11点02分
@鹿否Deer♬ 噢,那个是我用mz做的,好像mz里面有个窗口函数变了。稍等我用mv重做一下。
2021年02月09日 12点02分
level 6
Scene_Menu.prototype.createCommandWindow = function() { this._commandWindow = new Window_MenuCommand(0, 0); this._commandWindow.setHandler('item', this.commandItem.bind(this)); this._commandWindow.setHandler('save', this.commandSave.bind(this)); this._commandWindow.setHandler('gameEnd', this.commandGameEnd.bind(this)); this._commandWindow.setHandler('cancel', this.popScene.bind(this)); this.addWindow(this._commandWindow);};
Window_MenuCommand.prototype.makeCommandList = function() { this.addMainCommands(); this.addSaveCommand(); this.addGameEndCommand();};
Window_MenuCommand.prototype.addMainCommands = function() { const enabled = this.areMainCommandsEnabled(); if (this.needsCommand("item")) { this.addCommand(TextManager.item, "item", enabled); }};
2021年02月09日 12点02分 3
好了这个是mv版的。
2021年02月09日 12点02分
尝试了一下,还是不行,这个只去掉了菜单的选项,没有消去旁边那个大大的状态显示窗口。
2021年02月09日 17点02分
Scene_Menu.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createCommandWindow(); // this.createGoldWindow(); // this.createStatusWindow();}; 我想用这样的方法直接去掉金钱窗口和状态窗口,但是一直报错。
2021年02月09日 17点02分
Scene_Menu.prototype.create = function() { Scene_MenuBase.prototype.create.call(this); this.createCommandWindow(); this.createGoldWindow();};Scene_Menu.prototype.start = function() { Scene_MenuBase.prototype.start.call(this);};
2021年02月10日 03点02分
1