Open main menu

Changes

MediaWiki:Gadget-artTab.js

224 bytes added, 02:19, 14 January 2018
Added checks for physics and pose
json = data;
json.model = curl(modelId + "_live2d_model.moc" + ".skel");
if (json.hasOwnProperty('physics') { json.physics = curl(modelId + "_live2d_physics" + ".txt"); }
if (json.hasOwnProperty('pose') { json.pose = curl(modelId + "_live2d_pose" + ".txt"); }
for (var idx=0; idx < json.textures.length; idx++) {
json.textures[idx] = curl(modelId + "_live2d_" + json.textures[idx]);