UIMenuStatisticsPanel

image

This panel is not interactable by user input, it will only show given infos.

Constructor

UIMenuStatisticsPanel()

Lua:

UIMenuStatisticsPanel.New(items)

Functions

Add Statistics

public void AddStatistics(string Name, float val)
statsPanel:AddStatistic(name, value)

Functions

Get Percentage

Retrieve the current percentage from one of the listed statistics.

public float GetPercentage(int ItemId)
statsPanel:GetPercentage(id) -- returns a statistic value

Set Percentage

Sets or updates a statistic value

public void SetPercentage(int ItemId, float number)
statsPanel:UpdateStatistic(id, value)