var confun = function() {
counter++;
showProgress(container, counter, maxItems);
}
// Correct paths
json.model = curl(modelId + "_live2d_model.moc" + ".skel");
if (json.hasOwnProperty('physics')) { json.physics = curl(modelId + "_live2d_" + json.physics + ".txt"); } if (json.hasOwnProperty('pose')) { json.pose = curl(modelId + json.pose + ".txt"); }
for (var idx=json.motions.idle.length-1; idx >= 0; idx--) {
for (var idx=json.motions.tap_figure.length-1; idx >= 0 ; idx--) {
// json.motions.tap_figure[idx].file = folder + json.motions.tap_figure[idx].file + ".txt";
let job = makeBase64Request(curl(modelId + json.motions.tap_figure[idx].file + ".txt"));
job.then(function(promiseData) {
$.when.apply($, loadingJobs)
.done(function(x) {
startLive2dStuffvar l2d_tdoll_sprite = createLive2dSprite(json); callback(l2d_tdoll_sprite);
})
.fail(function(x) { console.log("Failed ajax", x); })