(function() {
ConfigManager.makeData = function() {
var config = {};
config.alwaysDash = this.alwaysDash;
config.commandRemember = this.commandRemember;
config.bgmVolume = this.bgmVolume;
config.bgsVolume = this.bgsVolume;
config.meVolume = this.meVolume;
config.seVolume = this.seVolume;
config.newGamePlus = this.newGamePlus; // 本行为新增内容,表示是否已通关一周目
return config;
};
ConfigManager.applyData = function(config) {
this.alwaysDash = this.readFlag(config, 'alwaysDash');
this.commandRemember = this.readFlag(config, 'commandRemember');
this.bgmVolume = this.readVolume(config, 'bgmVolume');
this.bgsVolume = this.readVolume(config, 'bgsVolume');
this.meVolume = this.readVolume(config, 'meVolume');
this.seVolume = this.readVolume(config, 'seVolume');
this.newGamePlus = this.readFlag(config, 'newGamePlus'); // 本行为新增内容,表示是否已通关一周目
};
Scene_Title.prototype.createBackground = function() {
if (ConfigManager.newGamePlus) {
$dataSystem.title1Name = 'Night'; // 比如说默认的标题图片是 'Castle',一周目通关后希望改成 'Night'
$dataSystem.title2Name = 'Floral'; // 同理,比如说默认的标题没有边框,一周目通关后加个金色框
}
this._backSprite1 = new Sprite(ImageManager.loadTitle1($dataSystem.title1Name));
this._backSprite2 = new Sprite(ImageManager.loadTitle2($dataSystem.title2Name));
this.addChild(this._backSprite1);
this.addChild(this._backSprite2);
}
})();