commonui-lib-test
Version:
"#common ui lib test"
78 lines (77 loc) • 2.17 kB
TypeScript
interface ISkeletonData {
url: string;
aniName: string | number;
pivot: {
x: number;
y: number;
};
scale: {
x: number;
y: number;
};
loop: boolean;
autoPlay: boolean;
}
/**
* @api {class} CSkeletonHandler
* @apiName CSkeletonHandler
* @apiGroup CSkeletonHandler
* @apiDescription Skeleton Handler
*/
export default class CSkeletonHandler {
private mRoot;
private mFactory;
private mArmature;
private mAniMode;
constructor(root: fgui.GObject, aniMode?: number);
/**
* @api {function} loadWithTemplet
* @apiName loadWithTemplet
* @apiGroup CSkeletonHandler
* @apiDescription load skeleton with Laya.Templet
*/
loadWithTemplet(skeletonData: ISkeletonData): Promise<void>;
/**
* @api {function} loadWithSkeleton
* @apiName loadWithSkeleton
* @apiGroup CSkeletonHandler
* @apiDescription load skeleton with Laya.Skeleton
*/
loadWithSkeleton(skeletonData: ISkeletonData): Promise<void>;
/**
* @api {function} dispose
* @apiName dispose
* @apiGroup CSkeletonHandler
* @apiDescription dispose CSkeletonHandler
*/
dispose(): void;
/**
* @api {function} parseTempletComplete
* @apiName parseTempletComplete
* @apiGroup CSkeletonHandler
* @apiDescription on load skeleton with Laya.Templet complete
*/
private parseTempletComplete;
/**
* @api {function} parseSkeletonComplete
* @apiName parseSkeletonComplete
* @apiGroup CSkeletonHandler
* @apiDescription on load skeleton with Laya.Skeleton complete
*/
private parseSkeletonComplete;
/**
* @api {function} showDragonBoneAni
* @apiName showDragonBoneAni
* @apiGroup CSkeletonHandler
* @apiDescription show dragonbone animation winth name or index
*/
private showDragonBoneAni;
/**
* @api {function} combinArgs
* @apiName combinArgs
* @apiGroup CSkeletonHandler
* @apiDescription combin loader args
*/
private combinArgs;
}
export {};