Table of Contents

Class AltVariantData

Namespace
TrinketTinker.Models
Assembly
TrinketTinker.dll

Additional variant data, kind of like NPC appearance

public class AltVariantData : IVariantData
Inheritance
AltVariantData
Implements
Inherited Members

Properties

Bounding

Adjusts the bounding box

public Rectangle Bounding { get; set; }

Property Value

Rectangle

ColorMask

Draw color mask, can use color name from Microsoft.Xna.Framework.Color, hex value, or COLOR_PRISMATIC for animated prismatic effect.

public string? ColorMask { get; set; }

Property Value

string

Condition

Game state query condition

public string? Condition { get; set; }

Property Value

string

Height

Sprite height

public int Height { get; set; }

Property Value

int

NPC

Variant speaker NPC, for chatter ability. Required for Portraiture compatibility, can omit Name if set.

public string? NPC { get; set; }

Property Value

string

Name

Variant speaker name, for chatter ability.

public string? Name { get; set; }

Property Value

string

Portrait

Variant portrait content path, for chatter ability.

public string? Portrait { get; set; }

Property Value

string

Priority

Priority of this alt variant, higher

public int Priority { get; set; }

Property Value

int

ShadowScale

Base scale to draw shadow texture.

public float ShadowScale { get; set; }

Property Value

float

ShowBreathing

Show NPC breathing, only usable if NPC is a real NPC with standard 16x32 or smaller sprite.

public bool? ShowBreathing { get; set; }

Property Value

bool?

Texture

Variant texture content path.

public string? Texture { get; set; }

Property Value

string

TextureExtra

Additional textures used in anim clips only, this should generally have the same layout as Texture.

public string? TextureExtra { get; set; }

Property Value

string

TextureExtraSourceRect

Which section of TextureExtra to use, defaults to entire texture

public Rectangle TextureExtraSourceRect { get; set; }

Property Value

Rectangle

TextureScale

Base scale to draw texture at.

public float TextureScale { get; set; }

Property Value

float

TextureSourceRect

Which section of Texture to use, defaults to entire texture

public Rectangle TextureSourceRect { get; set; }

Property Value

Rectangle

Width

Sprite width

public int Width { get; set; }

Property Value

int