mirror of
https://github.com/billsonnn/nitro-renderer.git
synced 2024-11-22 23:50:52 +01:00
cleaned AvatarAnimationFrame
This commit is contained in:
parent
428ae04cf6
commit
96737416ef
@ -941,7 +941,7 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
|
||||
{
|
||||
return;
|
||||
}
|
||||
if(k.definition._Str_778 == '')
|
||||
if(k.definition.assetPartDefinition == '')
|
||||
{
|
||||
return;
|
||||
}
|
||||
@ -958,7 +958,7 @@ export class AvatarImage implements IAvatarImage, IAvatarEffectListener
|
||||
{
|
||||
if(!k) return;
|
||||
|
||||
if(k.definition._Str_778 === '') return;
|
||||
if(k.definition.assetPartDefinition === '') return;
|
||||
|
||||
if(k.definition._Str_779)
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ export class AvatarImagePartContainer
|
||||
{
|
||||
const frame = this._frames[frameNumber];
|
||||
|
||||
return (this.partId + ':' + frame._Str_778 + ':' + frame.number);
|
||||
return (this.partId + ':' + frame.assetPartDefinition + ':' + frame.number);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -172,7 +172,7 @@ export class ActionDefinition implements IActionDefinition
|
||||
return this._activePartSet;
|
||||
}
|
||||
|
||||
public get _Str_778(): string
|
||||
public get assetPartDefinition(): string
|
||||
{
|
||||
return this._assetPartDefinition;
|
||||
}
|
||||
@ -221,4 +221,4 @@ export class ActionDefinition implements IActionDefinition
|
||||
{
|
||||
return this._params;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,7 @@ export interface IActionDefinition
|
||||
activePartSet: string;
|
||||
_Str_779: boolean;
|
||||
_Str_804: boolean;
|
||||
_Str_778: string;
|
||||
assetPartDefinition: string;
|
||||
lay: string;
|
||||
_Str_868: string;
|
||||
_Str_861: boolean;
|
||||
@ -17,4 +17,4 @@ export interface IActionDefinition
|
||||
_Str_715(_arg_1: string): boolean;
|
||||
_Str_772(_arg_1: string, _arg_2: number, _arg_3: []): void;
|
||||
_Str_805(_arg_1: string, _arg_2: number): number[];
|
||||
}
|
||||
}
|
||||
|
4
src/nitro/avatar/cache/AvatarImageCache.ts
vendored
4
src/nitro/avatar/cache/AvatarImageCache.ts
vendored
@ -331,7 +331,7 @@ export class AvatarImageCache
|
||||
}
|
||||
|
||||
const isFlipped = AvatarDirectionAngle.DIRECTION_IS_FLIPPED[direction] || false;
|
||||
let assetPartDefinition = _arg_4.definition._Str_778;
|
||||
let assetPartDefinition = _arg_4.definition.assetPartDefinition;
|
||||
let isCacheable = true;
|
||||
let containerIndex = (containers.length - 1);
|
||||
|
||||
@ -355,7 +355,7 @@ export class AvatarImageCache
|
||||
{
|
||||
frameNumber = animationFrame.number;
|
||||
|
||||
if((animationFrame._Str_778) && (animationFrame._Str_778 !== '')) assetPartDefinition = animationFrame._Str_778;
|
||||
if((animationFrame.assetPartDefinition) && (animationFrame.assetPartDefinition !== '')) assetPartDefinition = animationFrame.assetPartDefinition;
|
||||
}
|
||||
else frameNumber = container.getFrameIndex(frameCount);
|
||||
|
||||
|
@ -14,7 +14,7 @@ export class AvatarAnimationFrame
|
||||
return this._number;
|
||||
}
|
||||
|
||||
public get _Str_778(): string
|
||||
public get assetPartDefinition(): string
|
||||
{
|
||||
return this._assetPartDefinition;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user