加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 gaofei677 于 2016-2-22 18:48 编辑
(function() { Scene_File.prototype.create = function() { this.create_background_lower(); this.create_background_upper(); this.create_file_sprites(); this.creat_button(); this.locat_lastest_data(); }; ......(省略无数字) })();
(function() {
Scene_File.prototype.create = function() {
this.create_background_lower();
this.create_background_upper();
this.create_file_sprites();
this.creat_button();
this.locat_lastest_data();
};
......(省略无数字)
})();
我按照上面的改了我的Scene_File, 但是打开游戏却还是运行的没改之前,就是默认的存/档界面呢?
求大神指点~
Padthai_Sprite_Flie 第16 行
//----------------------------------------------------------------------------- // DataManager // // The static class that manages the database and game objects. (function() { DataManager.makeSavefileInfo = function() { var info = {}; info.globalId = this._globalId; info.title = $dataSystem.gameTitle; info.characters = $gameParty.charactersForSavefile(); info.faces = $gameParty.facesForSavefile(); info.playtime = $gameSystem.playtimeText(); info.timestamp = Date.now(); info.chaptter_name = $dataSystem.chaptter_name; info.data_head_pic_name = $dataSystem.data_head_pic_name; return info; }; })();
//-----------------------------------------------------------------------------
// DataManager
//
// The static class that manages the database and game objects.
(function() {
DataManager.makeSavefileInfo = function() {
var info = {};
info.globalId = this._globalId;
info.title = $dataSystem.gameTitle;
info.characters = $gameParty.charactersForSavefile();
info.faces = $gameParty.facesForSavefile();
info.playtime = $gameSystem.playtimeText();
info.timestamp = Date.now();
info.chaptter_name = $dataSystem.chaptter_name;
info.data_head_pic_name = $dataSystem.data_head_pic_name;
return info;
};
})();
Padthai_Scene_Flie 第34行
Scene_File.prototype.create_file_sprites = function() { var this._file_sprites = new Array(); //this.addChildAt(this._file_sprites, 2); for(i=0,i<=98,i+=1) { this._file_sprites[i] = new Sprite_File(130, ((i)*130+2000)); this.addChild(this._file_sprites[i]); } };
Scene_File.prototype.create_file_sprites = function() {
var this._file_sprites = new Array();
//this.addChildAt(this._file_sprites, 2);
for(i=0,i<=98,i+=1)
{
this._file_sprites[i] = new Sprite_File(130, ((i)*130+2000));
this.addChild(this._file_sprites[i]);
}
};
|