M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.TwoDimension.SpritePart Class Reference

Public Member Functions

 SpritePart (string name, SpriteCategory category, int width, int height)
 
void UpdateInitValues ()
 
void DrawSpritePart (float screenX, float screenY, float[] outVertices, float[] outUvs, int verticesStartIndex, int uvsStartIndex)
 
void DrawSpritePart (float screenX, float screenY, float[] outVertices, float[] outUvs, int verticesStartIndex, int uvsStartIndex, float scale, float customWidth, float customHeight, bool horizontalFlip, bool verticalFlip)
 
void FillTextureCoordinates (float[] outUVs, int uvsStartIndex, bool horizontalFlip, bool verticalFlip)
 

Properties

string Name [get]
 Name of the part.
 
int Width [get]
 Width of the part.
 
int Height [get]
 Height of the part.
 
int SheetID [get, set]
 ID of the sheet the part is in.
 
int SheetX [get, set]
 Top left X coordinate of the part on the sheet.
 
int SheetY [get, set]
 Top left Y coordinate of the part on the sheet.
 
float MinU [get]
 
float MinV [get]
 
float MaxU [get]
 
float MaxV [get]
 
int SheetWidth [get]
 
int SheetHeight [get]
 
Texture Texture [get]
 
SpriteCategory Category [get]
 

Constructor & Destructor Documentation

◆ SpritePart()

TaleWorlds.TwoDimension.SpritePart.SpritePart ( string  name,
SpriteCategory  category,
int  width,
int  height 
)

Member Function Documentation

◆ UpdateInitValues()

void TaleWorlds.TwoDimension.SpritePart.UpdateInitValues ( )

◆ DrawSpritePart() [1/2]

void TaleWorlds.TwoDimension.SpritePart.DrawSpritePart ( float  screenX,
float  screenY,
float[]  outVertices,
float[]  outUvs,
int  verticesStartIndex,
int  uvsStartIndex 
)

◆ DrawSpritePart() [2/2]

void TaleWorlds.TwoDimension.SpritePart.DrawSpritePart ( float  screenX,
float  screenY,
float[]  outVertices,
float[]  outUvs,
int  verticesStartIndex,
int  uvsStartIndex,
float  scale,
float  customWidth,
float  customHeight,
bool  horizontalFlip,
bool  verticalFlip 
)

◆ FillTextureCoordinates()

void TaleWorlds.TwoDimension.SpritePart.FillTextureCoordinates ( float[]  outUVs,
int  uvsStartIndex,
bool  horizontalFlip,
bool  verticalFlip 
)

Property Documentation

◆ Name

string TaleWorlds.TwoDimension.SpritePart.Name
get

◆ Width

int TaleWorlds.TwoDimension.SpritePart.Width
get

◆ Height

int TaleWorlds.TwoDimension.SpritePart.Height
get

◆ SheetID

int TaleWorlds.TwoDimension.SpritePart.SheetID
getset

◆ SheetX

int TaleWorlds.TwoDimension.SpritePart.SheetX
getset

◆ SheetY

int TaleWorlds.TwoDimension.SpritePart.SheetY
getset

◆ MinU

float TaleWorlds.TwoDimension.SpritePart.MinU
get

◆ MinV

float TaleWorlds.TwoDimension.SpritePart.MinV
get

◆ MaxU

float TaleWorlds.TwoDimension.SpritePart.MaxU
get

◆ MaxV

float TaleWorlds.TwoDimension.SpritePart.MaxV
get

◆ SheetWidth

int TaleWorlds.TwoDimension.SpritePart.SheetWidth
get

◆ SheetHeight

int TaleWorlds.TwoDimension.SpritePart.SheetHeight
get

◆ Texture

Texture TaleWorlds.TwoDimension.SpritePart.Texture
get

◆ Category

SpriteCategory TaleWorlds.TwoDimension.SpritePart.Category
get