【求助】请问大佬们标题选项中的设置应该如何去掉
rpgmakermv吧
全部回复
仅看楼主
level 1
满竹苏 楼主
😭😭因为是脚本盲所以请各位大佬回答的时候尽量详细一点
2019年09月12日 17点09分 1
level 11
为何要去掉设置选项?
2019年09月13日 04点09分 2
level 11
可以写个小插件实现,代码如下:
Scene_Title.prototype.createCommandWindow = function() {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
//this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this.addWindow(this._commandWindow);
};
Window_TitleCommand.prototype.makeCommandList = function() {
this.addCommand(TextManager.newGame, 'newGame');
this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
//this.addCommand(TextManager.options, 'options');
};
效果:
2019年09月13日 04点09分 3
谢谢!还想问一下这种情况下怎么添加存档选项|ω・)
2019年09月13日 04点09分
@满竹苏 什么存档选项?如果是载入游戏存档,继续游戏选项就是。
2019年09月13日 04点09分
@第四梦境🌌 啊啊不好意是退出选项,就初始有的那个退出游戏的选项应该怎能添加?
2019年09月13日 04点09分
@满竹苏 答案在楼下
2019年09月13日 05点09分
level 11
退出选项同样通过编写插件完成,代码如下:
Scene_Title.prototype.createCommandWindow = function() {
this._commandWindow = new Window_TitleCommand();
this._commandWindow.setHandler('newGame', this.commandNewGame.bind(this));
this._commandWindow.setHandler('continue', this.commandContinue.bind(this));
//this._commandWindow.setHandler('options', this.commandOptions.bind(this));
this._commandWindow.setHandler('quit', this.commandQuit.bind(this));
this.addWindow(this._commandWindow);
};
Scene_Title.prototype.commandQuit = function() {
SceneManager.exit();
};
Window_TitleCommand.prototype.makeCommandList = function() {
this.addCommand(TextManager.newGame, 'newGame');
this.addCommand(TextManager.continue_, 'continue', this.isContinueEnabled());
//this.addCommand(TextManager.options, 'options');
this.addCommand('退出游戏', 'quit');
};
效果:
2019年09月13日 05点09分 4
谢谢大佬!!
2019年09月13日 05点09分
哇,大佬⊙∀⊙!
2019年09月15日 03点09分
level 4
你好!大佬!怎么能在你这段代码上加个外部网页的超链?点击就直接跳转网页了!谢谢
2021年09月18日 09点09分 5
1