舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

微件:Chibi:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第3行: 第3行:
     <script src="https://cdn.jsdelivr.net/gh/pixijs/pixi-spine/bin/pixi-spine.js"></script>  
     <script src="https://cdn.jsdelivr.net/gh/pixijs/pixi-spine/bin/pixi-spine.js"></script>  
<script>  
<script>  
     function chibiAnimation(index, isMobile) {  
     function chibiAnimation(index, isMobile, loadButton) {  
         if (isMobile) { document.getElementById("chibiLoad1_" + index).style.display = "none"; }
         loadButton.style.display = "none";
            else { document.getElementById("chibiLoad0_" + index).style.display = "none"; }


         const pngFile = 'https://www.zjsnrwiki.com/images/chibi/Parts/Ship_girl_' + index + '.png';
         const pngFile = 'https://www.zjsnrwiki.com/images/chibi/Parts/Ship_girl_' + index + '.png';
第17行: 第16行:
             transparent:true
             transparent:true
         });
         });
         if (isMobile) { document.getElementById("chibiDivMobile_" + index).appendChild(app.view); }
         loadButton.parentNode.appendChild(app.view);
            else { document.getElementById("chibiDiv_" + index).appendChild(app.view); }


         app.stop();
         app.stop();
第92行: 第90行:
             app.renderer.extract.canvas(chibiCage).toBlob((b) => {
             app.renderer.extract.canvas(chibiCage).toBlob((b) => {
                 const a = document.createElement('a');
                 const a = document.createElement('a');
                 document.getElementById("chibiDiv_" + index).append(a);
                 loadButton.parentNode.append(a);
                 a.download = 'Ship_girl_' + index;
                 a.download = 'Ship_girl_' + index;
                 a.href = URL.createObjectURL(b);
                 a.href = URL.createObjectURL(b);

2020年7月9日 (四) 08:23的版本