Skip to content

Instantly share code, notes, and snippets.

@amuhororo
Last active October 25, 2020 00:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amuhororo/d0b297ebba3a6b6ad1dd to your computer and use it in GitHub Desktop.
Save amuhororo/d0b297ebba3a6b6ad1dd to your computer and use it in GitHub Desktop.
kag.menu.js セーブ・ロード画面に項目追加
doSave : function(num,cb) {
var array_save = this.getSaveData();
var data = {};
var that = this;
if (this.snap == null) {
this.snapSave(this.kag.stat.current_save_str, function() {
data = that.snap;
data.test = that.kag.stat.f.test; //←変数 f.test
data.save_date = $.getNowDate() + " " + $.getNowTime();
array_save.data[num] = data;
$.setStorage(that.kag.config.projectID + "_tyrano_data", array_save, that.kag.config.configSave);
if(typeof cb=="function"){
cb();
}
});
}else{
if(typeof cb=="function"){
cb();
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment