Class NativeCheckboxItem
Rockstar-like checkbox item.
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeCheckboxItem : NativeItem, IDrawable
Constructors
View SourceNativeCheckboxItem(string)
Creates a new NativeCheckboxItem.
Declaration
public NativeCheckboxItem(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title used for the Item. |
NativeCheckboxItem(string, bool)
Creates a new NativeCheckboxItem.
Declaration
public NativeCheckboxItem(string title, bool check)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title used for the Item. |
| bool | check | If the checkbox should be enabled or not. |
NativeCheckboxItem(string, string)
Creates a new NativeCheckboxItem.
Declaration
public NativeCheckboxItem(string title, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title used for the Item. |
| string | description | The description of the Item. |
NativeCheckboxItem(string, string, bool)
Creates a new NativeCheckboxItem.
Declaration
public NativeCheckboxItem(string title, string description, bool check)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title used for the Item. |
| string | description | The description of the Item. |
| bool | check | If the checkbox should be enabled or not. |
Fields
View SourceDefaultCheckedSet
The default checkbox textures when the checkbox is checked.
Declaration
public static readonly BadgeSet DefaultCheckedSet
Field Value
| Type | Description |
|---|---|
| BadgeSet |
DefaultUncheckedSet
The default checkbox textures when the checkbox is not checked.
Declaration
public static readonly BadgeSet DefaultUncheckedSet
Field Value
| Type | Description |
|---|---|
| BadgeSet |
check
The image shown on the checkbox.
Declaration
protected ScaledTexture check
Field Value
| Type | Description |
|---|---|
| ScaledTexture |
Properties
View SourceChecked
If this item is checked or not.
Declaration
public bool Checked { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CheckedSet
The textures used when the checkbox is checked.
Declaration
public BadgeSet CheckedSet { get; set; }
Property Value
| Type | Description |
|---|---|
| BadgeSet |
UncheckedSet
The textures used when the checkbox is unchecked.
Declaration
public BadgeSet UncheckedSet { get; set; }
Property Value
| Type | Description |
|---|---|
| BadgeSet |
Methods
View SourceDraw()
Draws the Checkbox on the screen.
Declaration
public override void Draw()
Overrides
View SourceRecalculate(PointF, SizeF, bool)
Recalculates the item positions and sizes with the specified values.
Declaration
public override void Recalculate(PointF pos, SizeF size, bool selected)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | pos | The position of the item. |
| SizeF | size | The size of the item. |
| bool | selected | If this item has been selected. |
Overrides
View SourceUpdateColors()
Updates the colors of the LemonUI.Elements from the Colors ColorSet.
Declaration
public override void UpdateColors()
Overrides
View SourceUpdateTexture(bool)
Updates the texture of the sprite.
Declaration
protected void UpdateTexture(bool selected)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | selected |
Events
View SourceCheckboxChanged
Event triggered when the checkbox changes.
Declaration
public event EventHandler CheckboxChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |