Class OpSimpleButton
public class OpSimpleButton : UIfocusable
- Inheritance
-
OpSimpleButton
- Derived
- Inherited Members
Constructors
OpSimpleButton(Vector2, Vector2, string)
public OpSimpleButton(Vector2 pos, Vector2 size, string displayText = "")
Parameters
posVector2sizeVector2displayTextstring
Fields
_alignment
public FLabelAlignment _alignment
Field Value
_heldCounter
public int _heldCounter
Field Value
_label
public readonly FLabel _label
Field Value
_rect
public readonly DyeableRect _rect
Field Value
_rectH
public readonly DyeableRect _rectH
Field Value
_text
public string _text
Field Value
colorEdge
public Color colorEdge
Field Value
- Color
colorFill
public Color colorFill
Field Value
- Color
soundClick
public SoundID soundClick
Field Value
Properties
_IsImageButton
public bool _IsImageButton { get; }
Property Value
alignment
public FLabelAlignment alignment { get; set; }
Property Value
text
public string text { get; set; }
Property Value
Methods
Change()
public override void Change()
DisplayDescription()
public override string DisplayDescription()
Returns
GrafUpdate(float)
public override void GrafUpdate(float timeStacker)
Parameters
timeStackerfloat
NonMouseSetHeld(bool)
public override void NonMouseSetHeld(bool newHeld)
Parameters
newHeldbool
Update()
public override void Update()
Events
OnClick
public event OnSignalHandler OnClick
Event Type
OnPressHold
public event OnSignalHandler OnPressHold
Event Type
OnPressInit
public event OnSignalHandler OnPressInit