Skip to content

Class LemonUI::Menus::NativeCheckboxItem

ClassList > LemonUI > Menus > NativeCheckboxItem

Rockstar-like checkbox item.

Inherits the following classes: LemonUI::Menus::NativeItem

Public Static Attributes

Type Name
readonly BadgeSet DefaultCheckedSet = = new BadgeSet
{
NormalDictionary = "commonmenu",
NormalTexture = "shop_box_tick",
HoveredDictionary = "commonmenu",
HoveredTexture = "shop_box_tickb"
}
The default checkbox textures when the checkbox is checked.
readonly BadgeSet DefaultUncheckedSet = = new BadgeSet
{
NormalDictionary = "commonmenu",
NormalTexture = "shop_box_blank",
HoveredDictionary = "commonmenu",
HoveredTexture = "shop_box_blankb"
}
The default checkbox textures when the checkbox is not checked.

Public Properties

Type Name
property bool? Checked
If this item is checked or not.
property BadgeSet CheckedSet
The textures used when the checkbox is checked.
property BadgeSet UncheckedSet
The textures used when the checkbox is unchecked.

Public Properties inherited from LemonUI::Menus::NativeItem

See LemonUI::Menus::NativeItem

Type Name
property string?? AltTitle
The alternative title of the item shown on the right.
property Font AltTitleFont
The font of alternative title item shown on the right.
property ColorSet Colors
The different colors that change dynamically when the item is used.
property string?? Description
The description of the item.
property bool? Enabled
If this item can be used or not.
property bool IsHovered
If this item is being hovered.
property I2Dimensional LeftBadge
The Left badge of the Item.
property BadgeSet LeftBadgeSet
The Left badge set of the Item.
property NativePanel Panel
The Panel associated to this NativeItem .
property I2Dimensional RightBadge
The Right badge of the Item.
property BadgeSet RightBadgeSet
The Right badge set of the Item.
property object Tag
Object that contains data about this Item.
property string?? Title
The title of the item.
property Font TitleFont
The font of title item.
property bool UseCustomBackground
If a custom colored background should be used.

Public Functions

Type Name
virtual override void Draw ()
Draws the Checkbox on the screen.
NativeCheckboxItem (string title)
Creates a new NativeCheckboxItem .
NativeCheckboxItem (string title, bool check)
Creates a new NativeCheckboxItem .
NativeCheckboxItem (string title, string description)
Creates a new NativeCheckboxItem .
NativeCheckboxItem (string title, string description, bool check)
Creates a new NativeCheckboxItem .
virtual override void Recalculate (PointF pos, SizeF size, bool selected)
Recalculates the item positions and sizes with the specified values.
virtual override void UpdateColors ()
Updates the colors of the Elements from the Colors ColorSet.

__ |

Public Functions inherited from LemonUI::Menus::NativeItem

See LemonUI::Menus::NativeItem

Type Name
virtual void Draw ()
Draws the item.
NativeItem (string title)
Creates a new NativeItem .
NativeItem (string title, string description)
Creates a new NativeItem .
NativeItem (string title, string description, string altTitle)
Creates a new NativeItem .
virtual void Recalculate (PointF pos, SizeF size, bool selected)
Recalculates the item positions and sizes with the specified values.
virtual void UpdateColors ()
Updates the colors of the Elements from theColors __ColorSet .

Public Functions inherited from LemonUI::IDrawable

See LemonUI::IDrawable

Type Name
void Draw ()
Draws the item on the screen.

Protected Functions inherited from LemonUI::Menus::NativeItem

See LemonUI::Menus::NativeItem

Type Name
void Recalculate ()
Recalculates the item with the last known values.

Public Static Attributes Documentation

variable DefaultCheckedSet

readonly BadgeSet LemonUI.Menus.NativeCheckboxItem.DefaultCheckedSet;

variable DefaultUncheckedSet

readonly BadgeSet LemonUI.Menus.NativeCheckboxItem.DefaultUncheckedSet;

Public Properties Documentation

property Checked

bool? LemonUI.Menus.NativeCheckboxItem.Checked;

property CheckedSet

BadgeSet LemonUI.Menus.NativeCheckboxItem.CheckedSet;

property UncheckedSet

BadgeSet LemonUI.Menus.NativeCheckboxItem.UncheckedSet;

Public Functions Documentation

function Draw

inline virtual override void LemonUI::Menus::NativeCheckboxItem::Draw () 

Implements LemonUI::Menus::NativeItem::Draw

function NativeCheckboxItem [1/4]

Creates a new NativeCheckboxItem .

inline LemonUI::Menus::NativeCheckboxItem::NativeCheckboxItem (
    string title
) 

Parameters:

  • title The title used for the Item.

function NativeCheckboxItem [2/4]

Creates a new NativeCheckboxItem .

inline LemonUI::Menus::NativeCheckboxItem::NativeCheckboxItem (
    string title,
    bool check
) 

Parameters:

  • title The title used for the Item.
  • check If the checkbox should be enabled or not.

function NativeCheckboxItem [3/4]

Creates a new NativeCheckboxItem .

inline LemonUI::Menus::NativeCheckboxItem::NativeCheckboxItem (
    string title,
    string description
) 

Parameters:

  • title The title used for the Item.
  • description The description of the Item.

function NativeCheckboxItem [4/4]

Creates a new NativeCheckboxItem .

inline LemonUI::Menus::NativeCheckboxItem::NativeCheckboxItem (
    string title,
    string description,
    bool check
) 

Parameters:

  • title The title used for the Item.
  • description The description of the Item.
  • check If the checkbox should be enabled or not.

function Recalculate

Recalculates the item positions and sizes with the specified values.

inline virtual override void LemonUI::Menus::NativeCheckboxItem::Recalculate (
    PointF pos,
    SizeF size,
    bool selected
) 

Parameters:

  • pos The position of the item.
  • size The size of the item.
  • selected If this item has been selected.

Implements LemonUI::Menus::NativeItem::Recalculate

function UpdateColors

inline virtual override void LemonUI::Menus::NativeCheckboxItem::UpdateColors () 

Implements LemonUI::Menus::NativeItem::UpdateColors


The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Menus/NativeCheckboxItem.cs