Barotrauma Client Doc
Barotrauma.GUISpriteSheet Class Reference
Inheritance diagram for Barotrauma.GUISpriteSheet:
Barotrauma.GUISelector< GUISpriteSheetPrefab >

Public Member Functions

 GUISpriteSheet (string identifier)
 
void Draw (ISpriteBatch spriteBatch, Vector2 pos, float rotate=0, float scale=1, SpriteEffects spriteEffects=SpriteEffects.None)
 
void Draw (ISpriteBatch spriteBatch, Vector2 pos, Color color, Vector2 origin, float rotate=0, float scale=1, SpriteEffects spriteEffects=SpriteEffects.None, float? depth=null)
 
void Draw (ISpriteBatch spriteBatch, int spriteIndex, Vector2 pos, Color color, Vector2 origin, float rotate, Vector2 scale, SpriteEffects spriteEffects=SpriteEffects.None, float? depth=null)
 
- Public Member Functions inherited from Barotrauma.GUISelector< GUISpriteSheetPrefab >
 GUISelector (string identifier)
 

Static Public Member Functions

static implicit operator SpriteSheet (GUISpriteSheet reference)
 

Properties

SpriteSheet Value [get]
 
int FrameCount [get]
 
Point FrameSize [get]
 

Additional Inherited Members

- Public Attributes inherited from Barotrauma.GUISelector< GUISpriteSheetPrefab >
readonly PrefabSelector< T > Prefabs
 
readonly Identifier Identifier
 

Detailed Description

Definition at line 389 of file GUIPrefab.cs.

Constructor & Destructor Documentation

◆ GUISpriteSheet()

Barotrauma.GUISpriteSheet.GUISpriteSheet ( string  identifier)

Definition at line 391 of file GUIPrefab.cs.

Member Function Documentation

◆ Draw() [1/3]

void Barotrauma.GUISpriteSheet.Draw ( ISpriteBatch  spriteBatch,
int  spriteIndex,
Vector2  pos,
Color  color,
Vector2  origin,
float  rotate,
Vector2  scale,
SpriteEffects  spriteEffects = SpriteEffects.None,
float?  depth = null 
)

Definition at line 414 of file GUIPrefab.cs.

◆ Draw() [2/3]

void Barotrauma.GUISpriteSheet.Draw ( ISpriteBatch  spriteBatch,
Vector2  pos,
Color  color,
Vector2  origin,
float  rotate = 0,
float  scale = 1,
SpriteEffects  spriteEffects = SpriteEffects.None,
float?  depth = null 
)

Definition at line 409 of file GUIPrefab.cs.

◆ Draw() [3/3]

void Barotrauma.GUISpriteSheet.Draw ( ISpriteBatch  spriteBatch,
Vector2  pos,
float  rotate = 0,
float  scale = 1,
SpriteEffects  spriteEffects = SpriteEffects.None 
)

Definition at line 404 of file GUIPrefab.cs.

◆ operator SpriteSheet()

static implicit Barotrauma.GUISpriteSheet.operator SpriteSheet ( GUISpriteSheet  reference)
static

Property Documentation

◆ FrameCount

int Barotrauma.GUISpriteSheet.FrameCount
get

Definition at line 401 of file GUIPrefab.cs.

◆ FrameSize

Point Barotrauma.GUISpriteSheet.FrameSize
get

Definition at line 402 of file GUIPrefab.cs.

◆ Value

SpriteSheet Barotrauma.GUISpriteSheet.Value
get

Definition at line 393 of file GUIPrefab.cs.