diff --git a/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts b/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts index 8eea44c9..62efb7d1 100644 --- a/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts +++ b/src/nitro/room/object/visualization/avatar/AvatarVisualization.ts @@ -1052,18 +1052,18 @@ export class AvatarVisualization extends RoomObjectSpriteVisualization implement if(scale < 48) { - sprite._Str_3582 = 'sh_std_sd_1_0_0'; + sprite.libraryAssetName = 'sh_std_sd_1_0_0'; - this._shadow = this._avatarImage.getAsset(sprite._Str_3582); + this._shadow = this._avatarImage.getAsset(sprite.libraryAssetName); offsetX = -8; offsetY = ((this._canStandUp) ? 6 : -3); } else { - sprite._Str_3582 = 'h_std_sd_1_0_0'; + sprite.libraryAssetName = 'h_std_sd_1_0_0'; - this._shadow = this._avatarImage.getAsset(sprite._Str_3582); + this._shadow = this._avatarImage.getAsset(sprite.libraryAssetName); offsetX = -17; offsetY = ((this._canStandUp) ? 10 : -7); diff --git a/src/nitro/room/object/visualization/furniture/FurnitureVisualization.ts b/src/nitro/room/object/visualization/furniture/FurnitureVisualization.ts index 22463980..6cdecc42 100644 --- a/src/nitro/room/object/visualization/furniture/FurnitureVisualization.ts +++ b/src/nitro/room/object/visualization/furniture/FurnitureVisualization.ts @@ -318,7 +318,7 @@ export class FurnitureVisualization extends RoomObjectSpriteVisualization sprite.relativeDepth = (relativeDepth * FurnitureVisualization.DEPTH_MULTIPLIER); sprite.name = assetName; - sprite._Str_3582 = this.getLibraryAssetNameForSprite(assetData, sprite); + sprite.libraryAssetName = this.getLibraryAssetNameForSprite(assetData, sprite); sprite.posture = this.getPostureForAsset(scale, assetData.source); sprite.clickHandling = false; } diff --git a/src/room/object/visualization/IRoomObjectSprite.ts b/src/room/object/visualization/IRoomObjectSprite.ts index de50bf6a..f3d7b1b1 100644 --- a/src/room/object/visualization/IRoomObjectSprite.ts +++ b/src/room/object/visualization/IRoomObjectSprite.ts @@ -19,8 +19,8 @@ export interface IRoomObjectSprite blendMode: number; color: number; relativeDepth: number; - _Str_4593: boolean; - _Str_3582: string; + varyingDepth: boolean; + libraryAssetName: string; clickHandling: boolean; visible: boolean; tag: string; @@ -29,4 +29,4 @@ export interface IRoomObjectSprite filters: Filter[]; updateCounter: number; updateContainer: boolean; -} \ No newline at end of file +} diff --git a/src/room/object/visualization/RoomObjectSprite.ts b/src/room/object/visualization/RoomObjectSprite.ts index 386b71cc..0777cd6b 100644 --- a/src/room/object/visualization/RoomObjectSprite.ts +++ b/src/room/object/visualization/RoomObjectSprite.ts @@ -26,8 +26,8 @@ export class RoomObjectSprite implements IRoomObjectSprite private _blendMode: number; private _color: number; private _relativeDepth: number; - private _Str_8253: boolean; - private _Str_11397: string; + private _varyingDepth: boolean; + private _libraryAssetName: string; private _clickHandling: boolean; private _visible: boolean; private _tag: string; @@ -59,8 +59,8 @@ export class RoomObjectSprite implements IRoomObjectSprite this._blendMode = BLEND_MODES.NORMAL; this._color = 0xFFFFFF; this._relativeDepth = 0; - this._Str_8253 = false; - this._Str_11397 = ''; + this._varyingDepth = false; + this._libraryAssetName = ''; this._clickHandling = false; this._visible = true; this._tag = ''; @@ -303,28 +303,28 @@ export class RoomObjectSprite implements IRoomObjectSprite this._updateCounter++; } - public get _Str_4593(): boolean + public get varyingDepth(): boolean { - return this._Str_8253; + return this._varyingDepth; } - public set _Str_4593(flag: boolean) + public set varyingDepth(flag: boolean) { - if(flag === this._Str_8253) return; + if(flag === this._varyingDepth) return; - this._Str_8253 = flag; + this._varyingDepth = flag; this._updateCounter++; } - public get _Str_3582(): string + public get libraryAssetName(): string { - return this._Str_11397; + return this._libraryAssetName; } - public set _Str_3582(value: string) + public set libraryAssetName(value: string) { - this._Str_11397 = value; + this._libraryAssetName = value; } public get clickHandling(): boolean @@ -419,4 +419,4 @@ export class RoomObjectSprite implements IRoomObjectSprite { this._updateContainer = flag; } -} \ No newline at end of file +} diff --git a/src/room/renderer/RoomSpriteCanvas.ts b/src/room/renderer/RoomSpriteCanvas.ts index 5f03729e..1cce93c6 100644 --- a/src/room/renderer/RoomSpriteCanvas.ts +++ b/src/room/renderer/RoomSpriteCanvas.ts @@ -512,7 +512,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas if((sprite.spriteType === RoomObjectSpriteType._Str_11629) || (sprite.spriteType === RoomObjectSpriteType._Str_10494)) { - sortableSprite.sprite._Str_3582 = 'avatar_' + object.id; + sortableSprite.sprite.libraryAssetName = 'avatar_' + object.id; } sortableSprite.x = (spriteX - this._screenOffsetX); @@ -564,9 +564,9 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas if(!objectSprite || !extendedSprite) return false; - if(extendedSprite._Str_4593 !== objectSprite._Str_4593) + if(extendedSprite.varyingDepth !== objectSprite.varyingDepth) { - if(extendedSprite._Str_4593 && !objectSprite._Str_4593) + if(extendedSprite.varyingDepth && !objectSprite.varyingDepth) { this._display.removeChildAt(index); @@ -585,7 +585,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas extendedSprite.tag = objectSprite.tag; extendedSprite.alphaTolerance = objectSprite.alphaTolerance; extendedSprite.name = sprite.name; - extendedSprite._Str_4593 = objectSprite._Str_4593; + extendedSprite.varyingDepth = objectSprite.varyingDepth; extendedSprite.clickHandling = objectSprite.clickHandling; extendedSprite.filters = objectSprite.filters; @@ -663,7 +663,7 @@ export class RoomSpriteCanvas implements IRoomRenderingCanvas extendedSprite.offsetX = sprite.offsetX; extendedSprite.offsetY = sprite.offsetY; extendedSprite.name = sprite.name; - extendedSprite._Str_4593 = sprite._Str_4593; + extendedSprite.varyingDepth = sprite.varyingDepth; extendedSprite.clickHandling = sprite.clickHandling; extendedSprite.blendMode = sprite.blendMode; extendedSprite.filters = sprite.filters; diff --git a/src/room/renderer/utils/ExtendedSprite.ts b/src/room/renderer/utils/ExtendedSprite.ts index 9b6ad263..aceeed9b 100644 --- a/src/room/renderer/utils/ExtendedSprite.ts +++ b/src/room/renderer/utils/ExtendedSprite.ts @@ -7,7 +7,7 @@ export class ExtendedSprite extends Sprite private _offsetY: number; private _tag: string; private _alphaTolerance: number; - private _Str_8253: boolean; + private _varyingDepth: boolean; private _clickHandling: boolean; private _pairedSpriteId: number; @@ -21,7 +21,7 @@ export class ExtendedSprite extends Sprite this._offsetY = 0; this._tag = ''; this._alphaTolerance = 128; - this._Str_8253 = false; + this._varyingDepth = false; this._clickHandling = false; this._pairedSpriteId = -1; @@ -219,14 +219,14 @@ export class ExtendedSprite extends Sprite this._alphaTolerance = tolerance; } - public get _Str_4593(): boolean + public get varyingDepth(): boolean { - return this._Str_8253; + return this._varyingDepth; } - public set _Str_4593(flag: boolean) + public set varyingDepth(flag: boolean) { - this._Str_8253 = flag; + this._varyingDepth = flag; } public get clickHandling(): boolean