查看: 5291|回复: 5

[已经解决] 关于读档的问题

[复制链接]
梦石
0
星屑
69
在线时间
227 小时
注册时间
2010-8-10
回帖
50
发表于 2016-2-26 12:16:06 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
请问如何把读档也加入主菜单  就是 YEP_MainMenuManager 下     感觉每次读取都要退到主界面很麻烦
梦石
0
星屑
497
在线时间
266 小时
注册时间
2015-12-8
回帖
729
发表于 2016-2-26 17:50:33 | 显示全部楼层
遊戲根本不該S/L大法 如果要的話代表設計有問題
回复

使用道具 举报

梦石
0
星屑
1232
在线时间
1017 小时
注册时间
2011-4-30
回帖
1464
发表于 2016-2-27 10:36:05 | 显示全部楼层
本帖最后由 汪汪 于 2016-2-27 10:42 编辑

  1. (function() {
  2. Scene_Menu.prototype.createCommandWindow = function() {
  3.     this._commandWindow = new Window_MenuCommand(0, 0);
  4.     this._commandWindow.setHandler('item',      this.commandItem.bind(this));
  5.     this._commandWindow.setHandler('skill',     this.commandPersonal.bind(this));
  6.     this._commandWindow.setHandler('equip',     this.commandPersonal.bind(this));
  7.     this._commandWindow.setHandler('status',    this.commandPersonal.bind(this));
  8.     this._commandWindow.setHandler('formation', this.commandFormation.bind(this));
  9.     this._commandWindow.setHandler('options',   this.commandOptions.bind(this));
  10.     this._commandWindow.setHandler('save',      this.commandSave.bind(this));
  11.     this._commandWindow.setHandler('load',      this.commandLoad.bind(this));//修改
  12.     this._commandWindow.setHandler('gameEnd',   this.commandGameEnd.bind(this));
  13.     this._commandWindow.setHandler('cancel',    this.popScene.bind(this));
  14.     this.addWindow(this._commandWindow);
  15. };
  16. Window_MenuCommand.prototype.makeCommandList = function() {
  17.     this.addMainCommands();
  18.     this.addFormationCommand();
  19.     this.addOriginalCommands();
  20.     this.addOptionsCommand();
  21.     this.addSaveCommand();
  22.     this.addLoadCommand();//修改
  23.     this.addGameEndCommand();
  24. };
  25. //添加

  26. Scene_Menu.prototype.commandLoad = function() {
  27.     SceneManager.push(Scene_Load);
  28. };

  29. Window_MenuCommand.prototype.addLoadCommand = function() {
  30.     if (this.needsCommand('save')) {//这个可以不要
  31.         var enabled = this.isSaveEnabled();//或者 =true 允许 false 不允许
  32.         this.addCommand(TextManager.load, 'load', enabled);
  33.     }//上面那个不要那么这个也不能要
  34. };

  35. })()
复制代码

评分

参与人数 1星屑 +10 收起 理由
SINBIOS + 10

查看全部评分

回复

使用道具 举报

梦石
0
星屑
69
在线时间
227 小时
注册时间
2010-8-10
回帖
50
 楼主| 发表于 2016-2-29 08:52:54 | 显示全部楼层
感激不尽
回复

使用道具 举报

梦石
0
星屑
69
在线时间
227 小时
注册时间
2010-8-10
回帖
50
 楼主| 发表于 2016-2-29 10:46:09 | 显示全部楼层
汪汪 发表于 2016-2-27 10:36

那个 请问 如何在主菜单那里显示读档呢     功能是实现了 但是菜单那里没有文字说明(=゚ω゚)=
回复

使用道具 举报

梦石
0
星屑
69
在线时间
227 小时
注册时间
2010-8-10
回帖
50
 楼主| 发表于 2016-2-29 11:09:20 | 显示全部楼层
OK  自己搞定了  还是非常感谢汪汪君。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部