SimpleButton
Namespace: Murder.Core.Ui
Assembly: Murder.dll
public class SimpleButton
⭐ Constructors
public SimpleButton(Guid images, Rectangle rectangle)
Parameters
images
Guid
rectangle
Rectangle
public SimpleButton(Guid images, ButtonState state, Rectangle rectangle)
Parameters
images
Guid
state
ButtonState
rectangle
Rectangle
⭐ Properties
Images
public Guid Images;
Returns
Guid
Rectangle
public Rectangle Rectangle;
Returns
Rectangle
State
public ButtonState State;
Returns
ButtonState
⭐ Methods
Draw(Batch2D, DrawInfo)
public void Draw(Batch2D batch, DrawInfo drawInfo)
Parameters
batch
Batch2D
drawInfo
DrawInfo
Update(Point, bool, bool, Action)
public void Update(Point cursorPosition, bool cursorClicked, bool cursorDown, Action action)
Parameters
cursorPosition
Point
cursorClicked
bool
cursorDown
bool
action
Action
UpdatePosition(Rectangle)
public void UpdatePosition(Rectangle rectangle)
Parameters
rectangle
Rectangle
⚡