rpgmakermv吧 关注:21,026贴子:67,390
  • 12回复贴,共1

【求助】请问大佬们标题选项中的设置应该如何去掉

只看楼主收藏回复

😭😭因为是脚本盲所以请各位大佬回答的时候尽量详细一点


来自Android客户端1楼2019-09-13 01:32回复
    为何要去掉设置选项?


    IP属地:广西2楼2019-09-13 12:02
    回复
      可以写个小插件实现,代码如下:
      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');
      };
      效果:


      IP属地:广西3楼2019-09-13 12:03
      收起回复
        退出选项同样通过编写插件完成,代码如下:
        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');
        };
        效果:


        IP属地:广西4楼2019-09-13 13:04
        收起回复
          你好!大佬!怎么能在你这段代码上加个外部网页的超链?点击就直接跳转网页了!谢谢


          IP属地:甘肃5楼2021-09-18 17:12
          收起回复