WoW:API GetShapeshiftFormInfo

From AddOn Studio
Revision as of 01:05, 3 February 2005 by WoWWiki>WoWWiki-Satsh
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetShapeshiftFormInfo -Documentation by Satsh-

Retrieves information about an available Shapeshiftform or Stance.

icon, name, active = GetShapeshiftFormInfo(index);

Arguments
(Number Index)
type
One of the following:
index
Index of ShapeshiftForm, counted from left to right from Iconpositions in the Shapeshift/Stance bar. May not be greater then GetNumShapeshiftForms();

Returns
icon
Position and name of the icon used for the button
name
Name of the ShapeshiftForm or Stance (optional)
active
Returns 1 if this ShapeshiftForm/Stance is currently active, else 0 (optional)

Example
icon = GetShapeshiftFormInfo(1);
icon, name = GetShapeshiftFormInfo(1);
icon, name, active = GetShapeshiftFormInfo(1);

Template:WoW API