export default class RoleDress { static colors = [ {"legbig-y":2,"legsmall-b":1,"body-y":3,"hang-b":1},//red {"legbig-y":1,"legsmall-b":3,"body-y":1,"hang-b":3},//green {"legbig-y":0,"legsmall-b":2,"body-y":0,"hang-b":2},//yellow {"legbig-y":3,"legsmall-b":0 ,"body-y":2,"hang-b":0}//black ]; static changeColor(armature:dragonBones.Armature, colorIndex:number){ let roleColorInfo = this.colors[colorIndex]; for(let slotName in roleColorInfo){ armature.getSlot(slotName).displayIndex = roleColorInfo[slotName]; } } }