赞 | 58 |
VIP | 37 |
好人卡 | 59 |
积分 | 12 |
经验 | 66255 |
最后登录 | 2023-5-29 |
在线时间 | 1017 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 1232
- 在线时间
- 1017 小时
- 注册时间
- 2011-4-30
- 帖子
- 1516
|
- 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.nr = this.nr || {}
- 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.nr = config.nr || {}
-
- };
复制代码 //使用方法
//设置
ConfigManager.nr[数据名] = xxx
//读取
var x = ConfigManager.nr[数据名]
保存下来
ConfigManager.save()
|
|