| 赞 | 3 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2018-11-11 |
| 在线时间 | 306 小时 |
- 梦石
- 0
- 星屑
- 60
- 在线时间
- 306 小时
- 注册时间
- 2014-8-5
- 回帖
- 403
|
发表于 2016-2-20 10:10:19
|
显示全部楼层
只提供一份思路。- (function(){
- var setMyCommandHandler=Scene_Title.prototype.createCommandWindow;
- Scene_Title.prototype.createCommandWindow=function()
- {
- setMyCommandHandler.call(this);
- this._commandWindow.setHandler('gameExit', this.commandGameExit.bind(this));
- };
- Scene_Title.prototype.commandGameExit=function()
- {
- this.fadeOutAll();
- SceneManager.exit();
- };
- var addMyCommand= Window_TitleCommand.prototype.makeCommandList;
- Window_TitleCommand.prototype.makeCommandList=function()
- {
- addMyCommand.call(this);
- this.addCommand("Game End", 'gameExit');
- };
- })();
复制代码 |
|