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

Inherits TaleWorlds.TwoDimension.Sprite.

Public Member Functions

 SpriteNineRegion (string name, SpritePart baseSprite, int leftWidth, int rightWidth, int topHeight, int bottomHeight)
 
override float GetScaleToUse (float width, float height, float scale)
 
- Public Member Functions inherited from TaleWorlds.TwoDimension.Sprite
abstract float GetScaleToUse (float width, float height, float scale)
 
override string ToString ()
 

Properties

override Texture Texture [get]
 
SpritePart BaseSprite [get]
 
int LeftWidth [get]
 
int RightWidth [get]
 
int TopHeight [get]
 
int BottomHeight [get]
 
- Properties inherited from TaleWorlds.TwoDimension.Sprite
abstract Texture Texture [get]
 
string Name [get]
 
int Width [get]
 
int Height [get]
 

Additional Inherited Members

- Protected Member Functions inherited from TaleWorlds.TwoDimension.Sprite
 Sprite (string name, int width, int height)
 
- Protected Attributes inherited from TaleWorlds.TwoDimension.Sprite
DrawObject2D CachedDrawObject
 
SpriteDrawData CachedDrawData
 

Constructor & Destructor Documentation

◆ SpriteNineRegion()

TaleWorlds.TwoDimension.SpriteNineRegion.SpriteNineRegion ( string  name,
SpritePart  baseSprite,
int  leftWidth,
int  rightWidth,
int  topHeight,
int  bottomHeight 
)

Member Function Documentation

◆ GetScaleToUse()

override float TaleWorlds.TwoDimension.SpriteNineRegion.GetScaleToUse ( float  width,
float  height,
float  scale 
)
virtual

Property Documentation

◆ Texture

override Texture TaleWorlds.TwoDimension.SpriteNineRegion.Texture
get

◆ BaseSprite

SpritePart TaleWorlds.TwoDimension.SpriteNineRegion.BaseSprite
get

◆ LeftWidth

int TaleWorlds.TwoDimension.SpriteNineRegion.LeftWidth
get

◆ RightWidth

int TaleWorlds.TwoDimension.SpriteNineRegion.RightWidth
get

◆ TopHeight

int TaleWorlds.TwoDimension.SpriteNineRegion.TopHeight
get

◆ BottomHeight

int TaleWorlds.TwoDimension.SpriteNineRegion.BottomHeight
get