🆙 Added animations: Move, Wave, Talk, Sign, Respect, Blow, Laugh, Swim, Float.to default

This commit is contained in:
DuckieTM
2026-03-21 19:01:03 +01:00
parent cda331dbb9
commit 285c38ad17
3 changed files with 488 additions and 3 deletions
+17 -2
View File
@@ -24,6 +24,7 @@ export class AvatarImageCache
private _canvas: AvatarCanvas;
private _disposed: boolean;
private _geometryType: string;
private _defaultAction: string = 'std';
private _unionImages: ImageData[];
private _matrix: Matrix;
@@ -140,6 +141,7 @@ export class AvatarImageCache
{
this._geometryType = k;
this._canvas = null;
this._defaultAction = (k === GeometryType.HORIZONTAL) ? 'lay' : 'std';
return;
}
@@ -147,7 +149,8 @@ export class AvatarImageCache
this.disposeInactiveActions(0);
this._geometryType = k;
this._canvas = null;
this._canvas = null;
this._defaultAction = (k === GeometryType.HORIZONTAL) ? 'lay' : 'std';
}
public getImageContainer(key: string, frameNumber: number, forceRefresh: boolean = false): AvatarImageBodyPartContainer
@@ -330,7 +333,19 @@ export class AvatarImageCache
if(!asset)
{
assetName = (this._scale + '_std_' + partType + '_' + partId + '_' + assetDirection + '_0');
assetName = (this._scale + '_' + assetPartDefinition + '_' + partType + '_' + partId + '_' + assetDirection + '_0');
asset = this._assets.getAsset(assetName);
}
if(!asset)
{
assetName = (this._scale + '_' + this._defaultAction + '_' + partType + '_' + partId + '_' + assetDirection + '_' + frameNumber);
asset = this._assets.getAsset(assetName);
}
if(!asset)
{
assetName = (this._scale + '_' + this._defaultAction + '_' + partType + '_' + partId + '_' + assetDirection + '_0');
asset = this._assets.getAsset(assetName);
}