设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 4383|回复: 5
打印 上一主题 下一主题

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

[复制链接]

Lv1.梦旅人

梦石
0
星屑
136
在线时间
216 小时
注册时间
2010-8-10
帖子
81
跳转到指定楼层
1
发表于 2016-2-26 12:16:06 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
请问如何把读档也加入主菜单  就是 YEP_MainMenuManager 下     感觉每次读取都要退到主界面很麻烦

Lv2.观梦者

梦石
0
星屑
497
在线时间
266 小时
注册时间
2015-12-8
帖子
873
2
发表于 2016-2-26 17:50:33 | 只看该作者
遊戲根本不該S/L大法 如果要的話代表設計有問題
回复 支持 反对

使用道具 举报

Lv3.寻梦者

梦石
0
星屑
1232
在线时间
1017 小时
注册时间
2011-4-30
帖子
1516
3
发表于 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

查看全部评分

回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
136
在线时间
216 小时
注册时间
2010-8-10
帖子
81
4
 楼主| 发表于 2016-2-29 08:52:54 | 只看该作者
感激不尽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
136
在线时间
216 小时
注册时间
2010-8-10
帖子
81
5
 楼主| 发表于 2016-2-29 10:46:09 | 只看该作者
汪汪 发表于 2016-2-27 10:36

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

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
136
在线时间
216 小时
注册时间
2010-8-10
帖子
81
6
 楼主| 发表于 2016-2-29 11:09:20 | 只看该作者
OK  自己搞定了  还是非常感谢汪汪君。。。
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-7 18:09

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表