[ts] Fixed constraints in skins.

This commit is contained in:
badlogic 2019-05-10 15:31:10 +02:00
parent 75ffb7b098
commit eff7a1502d
14 changed files with 14 additions and 14 deletions

View File

@ -42,7 +42,7 @@ package spine {
_name = name;
}
public function addAttachment(slotIndex : int, name : String, attachment : Attachment) : void {
public function setAttachment(slotIndex : int, name : String, attachment : Attachment) : void {
if (attachment == null) throw new ArgumentError("attachment cannot be null.");
if (slotIndex >= attachments.length) attachments.length = slotIndex + 1;
if (!attachments[slotIndex]) attachments[slotIndex] = new Dictionary();

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -781,7 +781,7 @@ declare module spine {
name: string;
attachments: Map<Attachment>[];
bones: BoneData[];
constraints: SlotData[];
constraints: Constraint[];
constructor(name: string);
setAttachment(slotIndex: number, name: string, attachment: Attachment): void;
addSkin(skin: Skin): void;

File diff suppressed because one or more lines are too long

View File

@ -36,7 +36,7 @@ module spine {
name: string;
attachments = new Array<Map<Attachment>>();
bones = Array<BoneData>();
constraints = new Array<SlotData>();
constraints = new Array<Constraint>();
constructor (name: string) {
if (name == null) throw new Error("name cannot be null.");