Class ButtonNode
Button Node
public class ButtonNode : ControlNode
- Inheritance
-
ButtonNode
- Inherited Members
- Extension Methods
Constructors
ButtonNode()
Construct ButtonNode
public ButtonNode()
Properties
DisabledTexture
Default Disabled ButtonNode texture
public static Texture DisabledTexture { get; }
Property Value
HoverTexture
Default Hover ButtonNode texture
public static Texture HoverTexture { get; }
Property Value
LabelNode
Button Label
public LabelNode LabelNode { get; }
Property Value
NormalTexture
Default Normal ButtonNode texture
public static Texture NormalTexture { get; }
Property Value
PressedTexture
Default Pressed ButtonNode texture
public static Texture PressedTexture { get; }
Property Value
Text
Button text
public string Text { get; set; }
Property Value
TextColor
Button text color
public Color TextColor { get; set; }
Property Value
Methods
OnClick(MouseEventArgs)
Node override to call Press
public override void OnClick(MouseEventArgs args)
Parameters
args
MouseEventArgs
OnPressed()
Called when Button is pressed
public virtual void OnPressed()
OnStateChanged()
Update Button Texture on state change
protected override void OnStateChanged()
OnTouchUpInside(TouchEventArgs)
Node override to call Press
public override void OnTouchUpInside(TouchEventArgs args)
Parameters
args
TouchEventArgs
Press()
Trigger button pressed event
public void Press()
Events
Pressed
Event called when Button is pressed
public event EventHandler<EventArgs> Pressed