WoW:API StatusBar GetMinMaxValues: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
m (Move page script moved page API StatusBar GetMinMaxValues to API StatusBar GetMinMaxValues without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
{{stub/api}}


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


''Very old info:''
== Arguments ==
None


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

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