Widget API: StatusBar:GetMinMaxValues

From AddOn Studio
Revision as of 14:33, 27 June 2007 by WoWWiki>Ravas (Updated to match the current API boilerplate.)
Jump to navigation Jump to search

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;