Show / Hide Table of Contents

Class NativeStatsPanel

Represents a Statistics panel.

Inheritance
object
NativePanel
NativeStatsPanel
Implements
IContainer<NativeStatsInfo>
IRecalculable
IProcessable
IEnumerable<NativeStatsInfo>
IEnumerable
Inherited Members
NativePanel.Visible
NativePanel.Clickable
NativePanel.Background
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: LemonUI.Menus
Assembly: LemonUI.SHVDN3.dll
Syntax
public class NativeStatsPanel : NativePanel, IContainer<NativeStatsInfo>, IRecalculable, IProcessable, IEnumerable<NativeStatsInfo>, IEnumerable

Constructors

View Source

NativeStatsPanel(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 Source

BackgroundColor

The color of the background of the bars.

Declaration
public Color BackgroundColor { get; set; }
Property Value
Type Description
Color
View Source

ForegroundColor

The color of the foreground of the bars.

Declaration
public Color ForegroundColor { get; set; }
Property Value
Type Description
Color

Methods

View Source

Add(NativeStatsInfo)

Adds a stat to the player field.

Declaration
public void Add(NativeStatsInfo field)
Parameters
Type Name Description
NativeStatsInfo field

The Field to add.

View Source

Clear()

Removes all of the Stats fields.

Declaration
public void Clear()
View Source

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

true if the item is part of the Panel, false otherwise.

View Source

GetEnumerator()

Declaration
public IEnumerator<NativeStatsInfo> GetEnumerator()
Returns
Type Description
IEnumerator<NativeStatsInfo>
View Source

Process()

Processes the Stats Panel.

Declaration
public override void Process()
Overrides
NativePanel.Process()
View Source

Recalculate()

Recalculates the Stats panel with the last known Position and Width.

Declaration
public void Recalculate()
View Source

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
NativePanel.Recalculate(PointF, float)
View Source

Remove(NativeStatsInfo)

Removes a field from the panel.

Declaration
public void Remove(NativeStatsInfo field)
Parameters
Type Name Description
NativeStatsInfo field

The field to remove.

View Source

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.

Implements

IContainer<T>
IRecalculable
IProcessable
IEnumerable<T>
IEnumerable
  • View Source
In this article
Back to top Generated by DocFX