Class RadioButton
A radio button element to use inside of a UiSystem. A radio button is a variation of a Checkbox that causes all other radio buttons in the same RootElement to be deselected upon selection.
public class RadioButton : Checkbox, IGenericDataHolder
- Inheritance
-
RadioButton
- Implements
- Inherited Members
- Extension Methods
Constructors
RadioButton(Anchor, Vector2, string, bool, string)
Creates a new radio button with the given settings
public RadioButton(Anchor anchor, Vector2 size, string label, bool defaultChecked = false, string group = "")
Parameters
anchor
AnchorThe radio button's anchor
size
Vector2The radio button's size
label
stringThe label to display next to the radio button
defaultChecked
boolIf the radio button should be checked by default
group
stringThe group that the radio button has
Fields
Group
The group that this radio button has. All other radio buttons in the same RootElement that have the same group will be deselected when this radio button is selected.
public string Group
Field Value
Methods
InitStyle(UiStyle)
Initializes this element's StyleProp<T> instances using the ui system's UiStyle.
protected override void InitStyle(UiStyle style)
Parameters
style
UiStyleThe new style