mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 17:18:44 +08:00
[ts] Fixed constraints in skins.
This commit is contained in:
parent
75ffb7b098
commit
eff7a1502d
@ -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();
|
||||
|
||||
2
spine-ts/build/spine-all.d.ts
vendored
2
spine-ts/build/spine-all.d.ts
vendored
@ -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
2
spine-ts/build/spine-canvas.d.ts
vendored
2
spine-ts/build/spine-canvas.d.ts
vendored
@ -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
2
spine-ts/build/spine-core.d.ts
vendored
2
spine-ts/build/spine-core.d.ts
vendored
@ -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
2
spine-ts/build/spine-player.d.ts
vendored
2
spine-ts/build/spine-player.d.ts
vendored
@ -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
2
spine-ts/build/spine-threejs.d.ts
vendored
2
spine-ts/build/spine-threejs.d.ts
vendored
@ -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
2
spine-ts/build/spine-webgl.d.ts
vendored
2
spine-ts/build/spine-webgl.d.ts
vendored
@ -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
@ -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.");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user