Class LemonUI::Menus::NativeStatsPanel
ClassList > LemonUI > Menus > NativeStatsPanel
Represents a Statistics panel.
Inherits the following classes: LemonUI::Menus::NativePanel, LemonUI::IContainer, IEnumerable< NativeStatsInfo >
Public Properties
| Type | Name |
|---|---|
| property Color | BackgroundColor The color of the background of the bars. |
| property Color | ForegroundColor The color of the foreground of the bars. |
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 Properties inherited from LemonUI::IProcessable
| Type | Name |
|---|---|
| property bool | Visible If this processable item is visible on the screen. |
Public Functions
| Type | Name |
|---|---|
| void | Add (NativeStatsInfo field) Adds a stat to the player field. |
| void | Clear () Removes all of the Stats fields. |
| bool | Contains (NativeStatsInfo field) Checks if the field is part of the Stats Panel. |
| IEnumerator< NativeStatsInfo > | GetEnumerator () |
| NativeStatsPanel (params NativeStatsInfo[] stats) Creates a new Stats Panel. |
|
| virtual override void | Process () Processes the Stats Panel. |
| void | Recalculate () Recalculates the Stats panel with the last known Position and Width. |
| virtual override void | Recalculate (PointF position, float width) Recalculates the position of the Stats panel. |
| void | Remove (NativeStatsInfo field) Removes a field from the panel. |
| void | Remove (Func< NativeStatsInfo, bool > func) Removes the items that match the function. |
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 Functions inherited from LemonUI::IContainer
| Type | Name |
|---|---|
| void | Add (T item) Adds the specified item into the Container. |
| void | Clear () Clears all of the items in the container. |
| bool | Contains (T item) Checks if the item is part of the container. |
| void | Remove (T item) Removes the item from the container. |
| void | Remove (Func< T, bool > func) Removes all of the items that match the function. |
Public Functions inherited from LemonUI::IRecalculable
| Type | Name |
|---|---|
| void | Recalculate () Recalculates the values. |
Public Functions inherited from LemonUI::IProcessable
| Type | Name |
|---|---|
| void | Process () Processes the object. |
Public Properties Documentation
property BackgroundColor
Color LemonUI.Menus.NativeStatsPanel.BackgroundColor;
property ForegroundColor
Color LemonUI.Menus.NativeStatsPanel.ForegroundColor;
Public Functions Documentation
function Add
Adds a stat to the player field.
inline void LemonUI::Menus::NativeStatsPanel::Add (
NativeStatsInfo field
)
Parameters:
fieldThe Field to add.
function Clear
inline void LemonUI::Menus::NativeStatsPanel::Clear ()
function Contains
Checks if the field is part of the Stats Panel.
bool LemonUI::Menus::NativeStatsPanel::Contains (
NativeStatsInfo field
)
Parameters:
fieldThe field to check.
Returns:
true if the item is part of the Panel, false otherwise.
function GetEnumerator [1/2]
IEnumerator< NativeStatsInfo > LemonUI::Menus::NativeStatsPanel::GetEnumerator ()
function NativeStatsPanel
Creates a new Stats Panel.
inline LemonUI::Menus::NativeStatsPanel::NativeStatsPanel (
params NativeStatsInfo [] stats
)
Parameters:
statsThe Statistics to add.
function Process
inline virtual override void LemonUI::Menus::NativeStatsPanel::Process ()
Implements LemonUI::Menus::NativePanel::Process
function Recalculate [1/2]
void LemonUI::Menus::NativeStatsPanel::Recalculate ()
function Recalculate [2/2]
Recalculates the position of the Stats panel.
inline virtual override void LemonUI::Menus::NativeStatsPanel::Recalculate (
PointF position,
float width
)
Parameters:
positionThe new position of the Stats Panel.widthThe width of the menu.
Implements LemonUI::Menus::NativePanel::Recalculate
function Remove [1/2]
Removes a field from the panel.
inline void LemonUI::Menus::NativeStatsPanel::Remove (
NativeStatsInfo field
)
Parameters:
fieldThe field to remove.
function Remove [2/2]
Removes the items that match the function.
inline void LemonUI::Menus::NativeStatsPanel::Remove (
Func< NativeStatsInfo , bool > func
)
Parameters:
funcThe function used to match items.
The documentation for this class was generated from the following file repos/LemonUI/LemonUI/Menus/NativeStatsPanel.cs