WoW:API StatusBar GetMinMaxValues: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
m (Move page script moved page API StatusBar GetMinMaxValues to API StatusBar GetMinMaxValues without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}


Returns the minimum and maximum values of a status bar.
Returns the minimum and maximum values of a status bar.
  statusMin, statusMax = StatusBar:GetMinMaxValues()
  statusMin, statusMax = StatusBar:GetMinMaxValues()


== Arguments ==
== Arguments ==
None
None


== Returns ==
== Returns ==
Line 14: Line 11:
:; statusMin : Number - The minimum value of the status bar
:; statusMin : Number - The minimum value of the status bar
:; statusMax : Number - The maximum value of the status bar
:; statusMax : Number - The maximum value of the status bar
== Details ==
: ''Very old info:'' This appears to return only the minimum value at this time (int ver 4216). At the very least, it only returns one number. In terms of the main casting status bar, a better way to access these values is:
minimum = getglobal("CastingBarFrame").startTime;
maximum = getglobal("CastingBarFrame").maxValue;

Latest revision as of 04:47, 15 August 2023

Widget API ← StatusBar < GetMinMaxValues

Returns the minimum and maximum values of a status bar.

statusMin, statusMax = StatusBar:GetMinMaxValues()

Arguments

None

Returns

statusMin, statusMax
statusMin
Number - The minimum value of the status bar
statusMax
Number - The maximum value of the status bar