Last active
October 25, 2020 00:31
-
-
Save amuhororo/d0b297ebba3a6b6ad1dd to your computer and use it in GitHub Desktop.
kag.menu.js セーブ・ロード画面に項目追加
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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