Skip to content

Class LemonUI::Menus::NativeItem

ClassList > LemonUI > Menus > NativeItem

Basic Rockstar-like item.

Inherits the following classes: LemonUI::IDrawable

Inherited by the following classes: LemonUI::Menus::NativeCheckboxItem, LemonUI::Menus::NativeSeparatorItem, LemonUI::Menus::NativeSlidableItem, LemonUI::Menus::NativeSubmenuItem

Public Properties

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 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

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

Public Properties Documentation

property AltTitle

string?? LemonUI.Menus.NativeItem.AltTitle;

property AltTitleFont

Font LemonUI.Menus.NativeItem.AltTitleFont;

property Colors

ColorSet LemonUI.Menus.NativeItem.Colors;

property Description

string?? LemonUI.Menus.NativeItem.Description;

property Enabled

bool? LemonUI.Menus.NativeItem.Enabled;

property IsHovered

bool LemonUI.Menus.NativeItem.IsHovered;

property LeftBadge

I2Dimensional LemonUI.Menus.NativeItem.LeftBadge;

property LeftBadgeSet

BadgeSet LemonUI.Menus.NativeItem.LeftBadgeSet;

property Panel

NativePanel LemonUI.Menus.NativeItem.Panel;

property RightBadge

I2Dimensional LemonUI.Menus.NativeItem.RightBadge;

property RightBadgeSet

BadgeSet LemonUI.Menus.NativeItem.RightBadgeSet;

property Tag

virtual object LemonUI.Menus.NativeItem.Tag;

property Title

string?? LemonUI.Menus.NativeItem.Title;

property TitleFont

Font LemonUI.Menus.NativeItem.TitleFont;

property UseCustomBackground

bool LemonUI.Menus.NativeItem.UseCustomBackground;

Public Functions Documentation

function Draw

inline virtual void LemonUI::Menus::NativeItem::Draw () 

Implements LemonUI::IDrawable::Draw

function NativeItem [1/3]

Creates a new NativeItem .

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

Parameters:

  • title The title of the item.

function NativeItem [2/3]

Creates a new NativeItem .

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

Parameters:

  • title The title of the item.
  • description The description of the item.

function NativeItem [3/3]

Creates a new NativeItem .

inline LemonUI::Menus::NativeItem::NativeItem (
    string title,
    string description,
    string altTitle
) 

Parameters:

  • title The title of the item.
  • description The description of the item.
  • altTitle The alternative title of the item, shown on the right.

function Recalculate [1/2]

Recalculates the item positions and sizes with the specified values.

inline virtual void LemonUI::Menus::NativeItem::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.

function UpdateColors

inline virtual void LemonUI::Menus::NativeItem::UpdateColors () 

Protected Functions Documentation

function Recalculate [2/2]

void LemonUI::Menus::NativeItem::Recalculate () 

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