mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 15:06:20 +00:00
Pixi v8 alignment in 2 room-widget helpers
- ChooserSelectionVisualizer: sprite.blendMode is BLEND_MODES (string enum in Pixi v8: 'normal' | 'add' | 'multiply' | ...). The legacy Pixi numeric enum compared against '=== 1' (ADD); switch to '=== "add"'. - MannequinUtilities.MANNEQUIN_FIGURE was inferred as (string | number | number[])[]: the 'hd' / 99999 / [99998] triple needs to be a typed tuple [string, number, number[]] so the figureContainer.updatePart(string, number, number[]) call resolves.
This commit is contained in:
@@ -48,7 +48,7 @@ export class chooserSelectionVisualizer
|
||||
|
||||
for (const sprite of visualization.sprites)
|
||||
{
|
||||
if (sprite.blendMode === 1) continue;
|
||||
if (sprite.blendMode === 'add') continue;
|
||||
const existing = (sprite.filters || []).filter(f => !(f instanceof ChooserSelectionFilter));
|
||||
sprite.filters = [...existing, filter];
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ import { AvatarFigurePartType, GetAvatarRenderManager, IAvatarFigureContainer }
|
||||
|
||||
export class MannequinUtilities
|
||||
{
|
||||
public static MANNEQUIN_FIGURE = [ 'hd', 99999, [ 99998 ] ];
|
||||
public static MANNEQUIN_FIGURE: [ string, number, number[] ] = [ 'hd', 99999, [ 99998 ] ];
|
||||
public static MANNEQUIN_CLOTHING_PART_TYPES = [
|
||||
AvatarFigurePartType.CHEST_ACCESSORY,
|
||||
AvatarFigurePartType.COAT_CHEST,
|
||||
|
||||
Reference in New Issue
Block a user