Class NativeStatsPanel
Represents a Statistics panel.
Implements
Inherited Members
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeStatsPanel : NativePanel, IContainer<NativeStatsInfo>, IRecalculable, IProcessable, IEnumerable<NativeStatsInfo>, IEnumerable
Constructors
View SourceNativeStatsPanel(params NativeStatsInfo[])
Creates a new Stats Panel.
Declaration
public NativeStatsPanel(params NativeStatsInfo[] stats)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeStatsInfo[] | stats | The Statistics to add. |
Properties
View SourceBackgroundColor
The color of the background of the bars.
Declaration
public Color BackgroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
ForegroundColor
The color of the foreground of the bars.
Declaration
public Color ForegroundColor { get; set; }
Property Value
| Type | Description |
|---|---|
| Color |
Methods
View SourceAdd(NativeStatsInfo)
Adds a stat to the player field.
Declaration
public void Add(NativeStatsInfo field)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeStatsInfo | field | The Field to add. |
Clear()
Removes all of the Stats fields.
Declaration
public void Clear()
Contains(NativeStatsInfo)
Checks if the field is part of the Stats Panel.
Declaration
public bool Contains(NativeStatsInfo field)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeStatsInfo | field | The field to check. |
Returns
| Type | Description |
|---|---|
| bool |
GetEnumerator()
Declaration
public IEnumerator<NativeStatsInfo> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<NativeStatsInfo> |
Process()
Processes the Stats Panel.
Declaration
public override void Process()
Overrides
View SourceRecalculate()
Recalculates the Stats panel with the last known Position and Width.
Declaration
public void Recalculate()
Recalculate(PointF, float)
Recalculates the position of the Stats panel.
Declaration
public override void Recalculate(PointF position, float width)
Parameters
| Type | Name | Description |
|---|---|---|
| PointF | position | The new position of the Stats Panel. |
| float | width | The width of the menu. |
Overrides
View SourceRemove(NativeStatsInfo)
Removes a field from the panel.
Declaration
public void Remove(NativeStatsInfo field)
Parameters
| Type | Name | Description |
|---|---|---|
| NativeStatsInfo | field | The field to remove. |
Remove(Func<NativeStatsInfo, bool>)
Removes the items that match the function.
Declaration
public void Remove(Func<NativeStatsInfo, bool> func)
Parameters
| Type | Name | Description |
|---|---|---|
| Func<NativeStatsInfo, bool> | func | The function used to match items. |