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

微件:Chibi:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
无编辑摘要
无编辑摘要
第44行: 第44行:
                      
                      
             //设定skin
             //设定skin
             chibi.skeleton.setSkinByName('normal');
             if (chibi.skeleton.data.findSkin('normal') != null)
                chibi.skeleton.setSkinByName('normal');
                else chibi.skeleton.setSkinByName('default');
             chibi.skeleton.setSlotsToSetupPose();
             chibi.skeleton.setSlotsToSetupPose();


第111行: 第113行:
         function changeSkin() {
         function changeSkin() {
             const currentSkinName = chibi.skeleton.skin.name;
             const currentSkinName = chibi.skeleton.skin.name;
             const newSkinName = (currentSkinName === 'normal' ? 'damage' : 'normal');
             let newSkinName = 'default';
            if (currentSkinName === 'normal') newSkinName = 'damage';
            if (currentSkinName === 'damage') newSkinName = 'normal';
             chibi.skeleton.setSkinByName(newSkinName);
             chibi.skeleton.setSkinByName(newSkinName);
             chibi.skeleton.setSlotsToSetupPose();
             chibi.skeleton.setSlotsToSetupPose();

2020年7月9日 (四) 03:52的版本