CachedNineSlice
Namespace: Murder.Core.Graphics
Assembly: Murder.dll
public sealed struct CachedNineSlice
⭐ Constructors
public CachedNineSlice(NineSliceInfo info)
Parameters
info
NineSliceInfo
public CachedNineSlice(Guid SpriteAsset)
Parameters
SpriteAsset
Guid
⭐ Properties
_core
public readonly Rectangle _core;
Returns
Rectangle
_image
public readonly SpriteAsset _image;
Returns
SpriteAsset
⭐ Methods
Draw(Batch2D, Rectangle, DrawInfo, AnimationInfo)
public void Draw(Batch2D batch, Rectangle target, DrawInfo drawInfo, AnimationInfo animationInfo)
Parameters
batch
Batch2D
target
Rectangle
drawInfo
DrawInfo
animationInfo
AnimationInfo
Draw(Batch2D, Rectangle, DrawInfo)
public void Draw(Batch2D batch, Rectangle target, DrawInfo drawInfo)
Parameters
batch
Batch2D
target
Rectangle
drawInfo
DrawInfo
DrawWithText(Batch2D, string, int, Color, T?, T?, Rectangle, float)
public void DrawWithText(Batch2D batch, string text, int font, Color textColor, T? textOutlineColor, T? textShadowColor, Rectangle target, float sort)
Parameters
batch
Batch2D
text
string
font
int
textColor
Color
textOutlineColor
T?
textShadowColor
T?
target
Rectangle
sort
float
⚡