helialprofile.png
Welcome to IOPWiki, Commander. You can contribute to this wiki without an account. Learn how to contribute and join our Discord server.

Changes

Jump to navigation Jump to search

MediaWiki:Gadget-artTab.js

34 bytes removed, 23:56, 16 January 2018
Fixed bad coding
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); })

Navigation menu