WoW:API StatusBar GetMinMaxValues: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API StatusBar GetMinMaxValues to API StatusBar GetMinMaxValues without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This appears to return only the minimum value at this time (int ver 4216). At the very least, it only returns one number.
{{widgetmethod}}


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


In terms of the main casting status bar, a better way to access these values is:
== Arguments ==
minimum = getglobal("CastingBarFrame").startTime;
None
maximum = getglobal("CastingBarFrame").maxValue;


-Moof
== Returns ==
----
:statusMin, statusMax
{{template:WoW API}}
:; statusMin : Number - The minimum value of the status bar
:; statusMax : Number - The maximum value of the status bar

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