WoW:API StatusBar GetMinMaxValues: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
No edit summary
Line 14: Line 14:
:; 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;

Revision as of 13:47, 28 November 2007

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