WoW:API StatusBar GetMinMaxValues: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
({{widgetmethod}})
(Updated to match the current API boilerplate.)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}
{{stub/api}}




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


This appears to return only the minimum value at this time (int ver 4216). At the very least, it only returns one number.


== Arguments ==
None


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


-Moof
== Returns ==
:statusMin, statusMax
:; statusMin : Number - The minimum 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 14:33, 27 June 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


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;