Class NativeItem
Basic Rockstar-like item.
Inheritance
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeItem : IDrawable
Constructors
View SourceNativeItem(string)
Creates a new NativeItem.
Declaration
public NativeItem(string title)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title of the item. |
NativeItem(string, string)
Creates a new NativeItem.
Declaration
public NativeItem(string title, string description)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title of the item. |
| string | description | The description of the item. |
NativeItem(string, string, string)
Creates a new NativeItem.
Declaration
public NativeItem(string title, string description, string altTitle)
Parameters
| Type | Name | Description |
|---|---|---|
| string | title | The title of the item. |
| string | description | The description of the item. |
| string | altTitle | The alternative title of the item, shown on the right. |
Fields
View SourcealtTitle
The alternate title of the menu.
Declaration
protected ScaledText altTitle
Field Value
| Type | Description |
|---|---|
| ScaledText |
badgeLeft
The left badge of the Item.
Declaration
protected I2Dimensional badgeLeft
Field Value
| Type | Description |
|---|---|
| I2Dimensional |
badgeRight
The left badge of the Item.
Declaration
protected I2Dimensional badgeRight
Field Value
| Type | Description |
|---|---|
| I2Dimensional |
lastPosition
The last known Item Position.
Declaration
protected PointF lastPosition
Field Value
| Type | Description |
|---|---|
| PointF |
lastSelected
The last known Item Selection.
Declaration
protected bool lastSelected
Field Value
| Type | Description |
|---|---|
| bool |
lastSize
The last known Item Size.
Declaration
protected SizeF lastSize
Field Value
| Type | Description |
|---|---|
| SizeF |
title
The title of the object.
Declaration
protected ScaledText title
Field Value
| Type | Description |
|---|---|
| ScaledText |
Properties
View SourceAltTitle
The alternative title of the item shown on the right.
Declaration
public string AltTitle { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
AltTitleFont
The font of alternative title item shown on the right.
Declaration
public Font AltTitleFont { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
Colors
The different colors that change dynamically when the item is used.
Declaration
public ColorSet Colors { get; set; }
Property Value
| Type | Description |
|---|---|
| ColorSet |
Description
The description of the item.
Declaration
public string Description { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Enabled
If this item can be used or not.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
IsHovered
If this item is being hovered.
Declaration
public bool IsHovered { get; }
Property Value
| Type | Description |
|---|---|
| bool |
LeftBadge
The Left badge of the Item.
Declaration
public I2Dimensional LeftBadge { get; set; }
Property Value
| Type | Description |
|---|---|
| I2Dimensional |
LeftBadgeSet
The Left badge set of the Item.
Declaration
public BadgeSet LeftBadgeSet { get; set; }
Property Value
| Type | Description |
|---|---|
| BadgeSet |
Panel
The Panel associated to this NativeItem.
Declaration
public NativePanel Panel { get; set; }
Property Value
| Type | Description |
|---|---|
| NativePanel |
RightBadge
The Right badge of the Item.
Declaration
public I2Dimensional RightBadge { get; set; }
Property Value
| Type | Description |
|---|---|
| I2Dimensional |
RightBadgeSet
The Right badge set of the Item.
Declaration
public BadgeSet RightBadgeSet { get; set; }
Property Value
| Type | Description |
|---|---|
| BadgeSet |
Tag
Object that contains data about this Item.
Declaration
public virtual object Tag { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Title
The title of the item.
Declaration
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
TitleFont
The font of title item.
Declaration
public Font TitleFont { get; set; }
Property Value
| Type | Description |
|---|---|
| Font |
UseCustomBackground
If a custom colored background should be used.
Declaration
public bool UseCustomBackground { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceDraw()
Draws the item.
Declaration
public virtual void Draw()
OnActivated(object)
Triggers the Activated event.
Declaration
protected void OnActivated(object sender)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | The source of the event. |
OnSelected(object, SelectedEventArgs)
Triggers the Selected event.
Declaration
protected void OnSelected(object sender, SelectedEventArgs e)
Parameters
| Type | Name | Description |
|---|---|---|
| object | sender | The source of the event. |
| SelectedEventArgs | e | A SelectedEventArgs with the index information. |
Recalculate()
Recalculates the item with the last known values.
Declaration
protected void Recalculate()
Recalculate(PointF, SizeF, bool)
Recalculates the item positions and sizes with the specified values.
Declaration
public virtual 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. |
UpdateColors()
Updates the colors of the LemonUI.Elements from the Colors ColorSet.
Declaration
public virtual void UpdateColors()
Events
View SourceActivated
Event triggered when the item is activated.
Declaration
public event EventHandler Activated
Event Type
| Type | Description |
|---|---|
| EventHandler |
EnabledChanged
Event triggered when the Enabled property is changed.
Declaration
public event EventHandler EnabledChanged
Event Type
| Type | Description |
|---|---|
| EventHandler |
Selected
Event triggered when the item is selected.
Declaration
public event SelectedEventHandler Selected
Event Type
| Type | Description |
|---|---|
| SelectedEventHandler |