Class LemonUI::Menus::NativeColorPanel
ClassList > LemonUI > Menus > NativeColorPanel
A Panel that allows you to select a Color.
Inherits the following classes: LemonUI::Menus::NativePanel, IEnumerable< NativeColorData >
Public Static Attributes
| Type | Name |
|---|---|
| readonly Sound | DefaultSound = = new Sound("HUD_FRONTEND_DEFAULT_SOUNDSET", "NAV_LEFT_RIGHT") The default sound used for the Color Navigation. |
Public Properties
| Type | Name |
|---|---|
| property override bool | Clickable |
| property List< NativeColorData > | Colors The colors shown on this Panel. |
| property int | MaxItems THe maximum number of items shown on the screen. |
| property int | Opacity The opacity value of the color. |
| property Color? | SelectedColor The currently selected color. |
| property int? | SelectedIndex The index of the currently selected Color. |
| property NativeColorData | SelectedItem Returns the currently selected NativeColorData . |
| property bool | ShowCount If the count of items should be shown as part of the title. |
| property bool | ShowOpacity If the Opacity selector should be shown. |
| property Sound | Sound The sound played when the item is changed. |
| property string?? | Title The Title used for the Panel when TitleStyle is set to_ColorTitleStyle.Simple ._ |
| property ColorTitleStyle | TitleStyle The style of the Panel Title. |
Public Properties inherited from LemonUI::Menus::NativePanel
See LemonUI::Menus::NativePanel
| Type | Name |
|---|---|
| property ScaledTexture | Background The Background of the panel itself. |
| property bool | Clickable If the item has controls that can be clicked. |
| property bool | Visible If this panel is visible to the user. |
Public Functions
| Type | Name |
|---|---|
| void | Add (NativeColorData color) Adds a color to the Panel. |
| void | Clear () Removes all of the colors from the Panel. |
| void | Contains (NativeColorData color) Checks if the Color Data is present on this Panel. |
| IEnumerator< NativeColorData > | GetEnumerator () |
| NativeColorPanel () Creates a color panel with no Items or Title. |
|
| NativeColorPanel (string title, params NativeColorData[] colors) Creates a Panel with a specific Title and set of Colors. |
|
| void | Next () Moves to the Next Color. |
| void | Previous () Moves to the Previous Color. |
| virtual override void | Process () Draws the Color Panel. |
| virtual override void | Recalculate (PointF position, float width) Recalculates the position of the Color Panel. |
| void | Remove (NativeColorData color) Removes a color from the panel. |
| void | Remove (Func< NativeColorData, bool > func) Removes all of the |
Public Functions inherited from LemonUI::Menus::NativePanel
See LemonUI::Menus::NativePanel
| Type | Name |
|---|---|
| virtual void | Process () Processes and Draws the panel. |
| virtual void | Recalculate (PointF position, float width) Recalculates the menu contents. |
Public Static Attributes Documentation
variable DefaultSound
readonly Sound LemonUI.Menus.NativeColorPanel.DefaultSound;
Public Properties Documentation
property Clickable
override bool LemonUI.Menus.NativeColorPanel.Clickable;
property Colors
List<NativeColorData> LemonUI.Menus.NativeColorPanel.Colors;
property MaxItems
int LemonUI.Menus.NativeColorPanel.MaxItems;
property Opacity
The opacity value of the color.
int LemonUI.Menus.NativeColorPanel.Opacity;
The value needs to be set between 100 and 0. It will return -1 if ShowOpacity is set to false.
property SelectedColor
The currently selected color.
Color? LemonUI.Menus.NativeColorPanel.SelectedColor;
If ShowOpacity is set to true.
property SelectedIndex
int? LemonUI.Menus.NativeColorPanel.SelectedIndex;
property SelectedItem
NativeColorData LemonUI.Menus.NativeColorPanel.SelectedItem;
property ShowCount
bool LemonUI.Menus.NativeColorPanel.ShowCount;
property ShowOpacity
bool LemonUI.Menus.NativeColorPanel.ShowOpacity;
property Sound
Sound LemonUI.Menus.NativeColorPanel.Sound;
property Title
string?? LemonUI.Menus.NativeColorPanel.Title;
property TitleStyle
ColorTitleStyle LemonUI.Menus.NativeColorPanel.TitleStyle;
Public Functions Documentation
function Add
Adds a color to the Panel.
inline void LemonUI::Menus::NativeColorPanel::Add (
NativeColorData color
)
Parameters:
colorThe color to add.
function Clear
inline void LemonUI::Menus::NativeColorPanel::Clear ()
function Contains
Checks if the Color Data is present on this Panel.
void LemonUI::Menus::NativeColorPanel::Contains (
NativeColorData color
)
Parameters:
colorThe Color Data to check.
function GetEnumerator [1/2]
IEnumerator< NativeColorData > LemonUI::Menus::NativeColorPanel::GetEnumerator ()
function NativeColorPanel [1/2]
inline LemonUI::Menus::NativeColorPanel::NativeColorPanel ()
function NativeColorPanel [2/2]
Creates a Panel with a specific Title and set of Colors.
inline LemonUI::Menus::NativeColorPanel::NativeColorPanel (
string title,
params NativeColorData [] colors
)
Parameters:
titleThe title of the panel.colorsThe colors of the panel.
function Next
inline void LemonUI::Menus::NativeColorPanel::Next ()
function Previous
inline void LemonUI::Menus::NativeColorPanel::Previous ()
function Process
inline virtual override void LemonUI::Menus::NativeColorPanel::Process ()
Implements LemonUI::Menus::NativePanel::Process
function Recalculate [1/2]
Recalculates the position of the Color Panel.
inline virtual override void LemonUI::Menus::NativeColorPanel::Recalculate (
PointF position,
float width
)
Parameters:
positionThe position of the panel.widthThe width of the menu.
Implements LemonUI::Menus::NativePanel::Recalculate
function Remove [1/2]
Removes a color from the panel.
inline void LemonUI::Menus::NativeColorPanel::Remove (
NativeColorData color
)
Parameters:
colorThe color to remove.
function Remove [2/2]
Removes all of the
inline void LemonUI::Menus::NativeColorPanel::Remove (
Func< NativeColorData , bool > func
)
Parameters:
func
The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Menus/NativeColorPanel.cs