查看: 4447|回复: 0

[已经解决] 为什么修改了Scene_File却还是运行没改之前的界面呢?

[复制链接]
梦石
0
星屑
136
在线时间
1050 小时
注册时间
2006-5-3
回帖
602
发表于 2016-2-22 18:37:04 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 gaofei677 于 2016-2-22 18:48 编辑
  1. (function() {

  2. Scene_File.prototype.create = function() {
  3.         this.create_background_lower();
  4.         this.create_background_upper();
  5.         this.create_file_sprites();
  6.         this.creat_button();
  7.         this.locat_lastest_data();
  8. };
  9. ......(省略无数字)
  10. })();
复制代码


我按照上面的改了我的Scene_File, 但是打开游戏却还是运行的没改之前,就是默认的存/档界面呢?
求大神指点~

QQ图片20160222184358.jpg


Padthai_Sprite_Flie 第16 行

  1. //-----------------------------------------------------------------------------
  2. // DataManager
  3. //
  4. // The static class that manages the database and game objects.
  5. (function() {
  6.        
  7. DataManager.makeSavefileInfo = function() {
  8.         var info = {};
  9.     info.globalId   = this._globalId;
  10.     info.title      = $dataSystem.gameTitle;
  11.     info.characters = $gameParty.charactersForSavefile();
  12.     info.faces      = $gameParty.facesForSavefile();
  13.     info.playtime   = $gameSystem.playtimeText();
  14.     info.timestamp  = Date.now();
  15.         info.chaptter_name = $dataSystem.chaptter_name;
  16.         info.data_head_pic_name = $dataSystem.data_head_pic_name;
  17.     return info;
  18. };

  19. })();
复制代码




Padthai_Scene_Flie 第34行
  1.         Scene_File.prototype.create_file_sprites = function() {
  2.                 var this._file_sprites = new Array();
  3.                 //this.addChildAt(this._file_sprites, 2);
  4.                 for(i=0,i<=98,i+=1)
  5.                 {
  6.                 this._file_sprites[i] = new Sprite_File(130, ((i)*130+2000));
  7.                 this.addChild(this._file_sprites[i]);
  8.                 }
  9.         };
复制代码
漏夏同人
《咱的夏天》
下载地址:http://tieba.baidu.com/p/2681607456
人员招募:http://rpg.blue/thread-339747-1-1.html
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

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

在本版发帖返回顶部