|
| UISprite (ContentXElement element) |
|
float | GetSliceBorderScale (Point drawSize) |
| Get the scale of the sliced sprite's borders when it's draw inside an area of a specific size More...
|
|
void | Draw (SpriteBatch spriteBatch, RectangleF rect, Color color, SpriteEffects spriteEffects=SpriteEffects.None, Vector2? uvOffset=null) |
|
void | Draw (SpriteBatch spriteBatch, Rectangle rect, Color color, SpriteEffects spriteEffects=SpriteEffects.None, Vector2? uvOffset=null) |
|
Definition at line 8 of file UISprite.cs.
◆ UISprite()
◆ Draw() [1/2]
void Barotrauma.UISprite.Draw |
( |
SpriteBatch |
spriteBatch, |
|
|
Rectangle |
rect, |
|
|
Color |
color, |
|
|
SpriteEffects |
spriteEffects = SpriteEffects.None , |
|
|
Vector2? |
uvOffset = null |
|
) |
| |
◆ Draw() [2/2]
void Barotrauma.UISprite.Draw |
( |
SpriteBatch |
spriteBatch, |
|
|
RectangleF |
rect, |
|
|
Color |
color, |
|
|
SpriteEffects |
spriteEffects = SpriteEffects.None , |
|
|
Vector2? |
uvOffset = null |
|
) |
| |
◆ GetSliceBorderScale()
float Barotrauma.UISprite.GetSliceBorderScale |
( |
Point |
drawSize | ) |
|
Get the scale of the sliced sprite's borders when it's draw inside an area of a specific size
Definition at line 110 of file UISprite.cs.
◆ CrossFadeIn
bool Barotrauma.UISprite.CrossFadeIn = true |
|
get |
◆ CrossFadeOut
bool Barotrauma.UISprite.CrossFadeOut = true |
|
get |
◆ MaintainAspectRatio
bool Barotrauma.UISprite.MaintainAspectRatio |
|
get |
◆ MaintainBorderAspectRatio
bool Barotrauma.UISprite.MaintainBorderAspectRatio |
|
get |
◆ NonSliceSize
Point Barotrauma.UISprite.NonSliceSize |
|
getset |
The size of fixed area around the slice area
Definition at line 33 of file UISprite.cs.
◆ Slice
bool Barotrauma.UISprite.Slice |
|
get |
◆ Slices
Rectangle [] Barotrauma.UISprite.Slices |
|
getset |
◆ Sprite
Sprite Barotrauma.UISprite.Sprite |
|
get |
◆ Tile
bool Barotrauma.UISprite.Tile |
|
get |
◆ TransitionMode