Stores the setup pose for a {@link Slot}.

Constructor

new(index:Int, name:String, boneData:BoneData)

Variables

@:value(0)index:Int = 0

@:value(new Color(1, 1, 1, 1))color:Color = new Color(1, 1, 1, 1)

darkColor:Color

Methods

getIndex():Int

The index of the slot in {@link Skeleton#getSlots()}.

getName():String

The name of the slot, which is unique across all slots in the skeleton.

getBoneData():BoneData

The bone this slot belongs to.

getColor():Color

The color used to tint the slot's attachment. If {@link #getDarkColor()} is set, this is used as the light color for two color tinting.

getDarkColor():Color

The dark color used to tint the slot's attachment for two color tinting, or null if two color tinting is not used. The dark color's alpha is not used.

setDarkColor(darkColor:Color):Void

setAttachmentName(attachmentName:String):Void

getAttachmentName():String

The name of the attachment that is visible for this slot in the setup pose, or null if no attachment is visible.

getBlendMode():BlendMode

The blend mode for drawing the slot's attachment.