Skip to content

Class LemonUI::Menus::NativeSliderItem

ClassList > LemonUI > Menus > NativeSliderItem

A slider item for changing integer values.

Inherits the following classes: LemonUI::Menus::NativeSlidableItem

Public Properties

Type Name
property int? Maximum
The maximum value of the slider.
property int Multiplier
The multiplier for increasing and decreasing the value.
property Color SliderColor
The color of the Slider.
property int? Value
The current value of the slider.

Public Properties inherited from LemonUI::Menus::NativeSlidableItem

See LemonUI::Menus::NativeSlidableItem

Type Name
property bool ArrowsAlwaysVisible
Whether the arrows should always be shown regardless of the visibility of the Item.
property ScaledTexture LeftArrow
The arrow pointing to the Left.
property ScaledTexture RightArrow
The arrow pointing to the Right.

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 slider.
virtual override void GoLeft ()
Reduces the value of the slider.
virtual override void GoRight ()
Increases the value of the slider.
NativeSliderItem (string title)
Creates a NativeSliderItem with a maximum of 100.
NativeSliderItem (string title, string description)
Creates a NativeSliderItem with a maximum of 100.
NativeSliderItem (string title, int max, int value)
Creates a NativeSliderItem with a specific current and maximum value.
NativeSliderItem (string title, string description, int max, int value)
Creates a NativeSliderItem with a specific maximum.
virtual override void Recalculate (PointF pos, SizeF size, bool selected)
Recalculates the item positions and sizes with the specified values.

Public Functions inherited from LemonUI::Menus::NativeSlidableItem

See LemonUI::Menus::NativeSlidableItem

Type Name
virtual override void Draw ()
Draws the left and right arrow.
virtual abstract void GoLeft () = 0
Moves to the previous item.
virtual abstract void GoRight () = 0
Moves to the next item.
NativeSlidableItem (string title, string description)
Creates a new item that can be sliden.
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 Attributes

Type Name
ScaledRectangle background = = new ScaledRectangle(PointF.Empty, SizeF.Empty)
{
Color = Color.FromArgb(255, 4, 32, 57)
}
The background of the slider.
ScaledRectangle slider = = new ScaledRectangle(PointF.Empty, SizeF.Empty)
{
Color = Color.FromArgb(255, 57, 116, 200)
}
THe front of the slider.

Protected Attributes inherited from LemonUI::Menus::NativeSlidableItem

See LemonUI::Menus::NativeSlidableItem

Type Name
ScaledTexture arrowLeft = = null
The arrow pointing to the Left.
ScaledTexture arrowRight = = null
The arrow pointing to the Right.

Protected Functions

Type Name
void UpdatePosition ()
Updates the position of the bar based on the value.

Protected Functions inherited from LemonUI::Menus::NativeItem

See LemonUI::Menus::NativeItem

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

Public Properties Documentation

property Maximum

int? LemonUI.Menus.NativeSliderItem.Maximum;

property Multiplier

int LemonUI.Menus.NativeSliderItem.Multiplier;

property SliderColor

Color LemonUI.Menus.NativeSliderItem.SliderColor;

property Value

int? LemonUI.Menus.NativeSliderItem.Value;

Public Functions Documentation

function Draw

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

Implements LemonUI::Menus::NativeSlidableItem::Draw

function GoLeft

inline virtual override void LemonUI::Menus::NativeSliderItem::GoLeft () 

Implements LemonUI::Menus::NativeSlidableItem::GoLeft

function GoRight

inline virtual override void LemonUI::Menus::NativeSliderItem::GoRight () 

Implements LemonUI::Menus::NativeSlidableItem::GoRight

function NativeSliderItem [1/4]

Creates a NativeSliderItem with a maximum of 100.

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

Parameters:

  • title The title of the Item.

function NativeSliderItem [2/4]

Creates a NativeSliderItem with a maximum of 100.

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

Parameters:

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

function NativeSliderItem [3/4]

Creates a NativeSliderItem with a specific current and maximum value.

inline LemonUI::Menus::NativeSliderItem::NativeSliderItem (
    string title,
    int max,
    int value
) 

Parameters:

  • title The title of the Item.
  • max The maximum value of the Slider.
  • value The current value of the Slider.

function NativeSliderItem [4/4]

Creates a NativeSliderItem with a specific maximum.

inline LemonUI::Menus::NativeSliderItem::NativeSliderItem (
    string title,
    string description,
    int max,
    int value
) 

Parameters:

  • title The title of the Item.
  • description The description of the Item.
  • max The maximum value of the Slider.
  • value The current value of the Slider.

function Recalculate

Recalculates the item positions and sizes with the specified values.

inline virtual override void LemonUI::Menus::NativeSliderItem::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::NativeSlidableItem::Recalculate

Protected Attributes Documentation

variable background

ScaledRectangle LemonUI.Menus.NativeSliderItem.background;

variable slider

ScaledRectangle LemonUI.Menus.NativeSliderItem.slider;

Protected Functions Documentation

function UpdatePosition

inline void LemonUI::Menus::NativeSliderItem::UpdatePosition () 

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