UIRadioButton Class
Definition
Namespace: Brine2D.UI
Radio button UI component for exclusive selections within a group.
Inheritance System.Object → UIRadioButton
Implements IUIComponent
| Properties | |
|---|---|
| BorderColor | Border color. |
| ButtonSize | Radio button size in pixels \(for the actual radio circle\). |
| CheckedColor | Checked button color. |
| DotColor | Inner dot color when checked. |
| Group | The group this radio button belongs to. |
| HoverColor | Hover button color. |
| IsChecked | Whether this radio button is selected. |
| Label | Radio button label text. |
| LabelColor | Label text color. |
| LabelSpacing | Spacing between button and label. |
| UncheckedColor | Unchecked button color. |
| Methods | |
|---|---|
| Select() | Selects this radio button \(deselects others in the group\). |
| SetHovered\(bool\) | Called by UICanvas when mouse hovers over radio button. |
| Events | |
|---|---|
| OnSelected | Event fired when this radio button is selected. |