WoW:API GetActiveTalentGroup: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Create page)
 
No edit summary
Line 3: Line 3:
Returns the index of the current active talent group.
Returns the index of the current active talent group.


GetActiveTalentGroup(isInspect, isPet);
local index = GetActiveTalentGroup(isInspect, isPet);


== Parameters ==
== Parameters ==
Line 16: Line 16:


:;index : The index of the current active talent group (1 for primary / 2 for secondary).
:;index : The index of the current active talent group (1 for primary / 2 for secondary).
== Patch changes ==
{{Patch 5.0.4|note=Replaced by {{api|GetActiveSpecGroup}}.}}
== See also ==
* {{api|GetActiveSpecGroup}}
* {{api|SetActiveSpecGroup}}
* {{api|GetNumSpecGroups}}
* {{api|GetSpecialization}}
* {{api|GetNumUnspentTalents}}
* {{api|GetNumSpecializations}}
* {{api|GetSpecializationInfo}}
* {{api|GetSpecializationRole}}
* {{api|t=e|ACTIVE_TALENT_GROUP_CHANGED}}

Revision as of 22:50, 30 August 2012

WoW API < GetActiveTalentGroup

Returns the index of the current active talent group.

local index = GetActiveTalentGroup(isInspect, isPet);

Parameters

Arguments

isInspect
Boolean - If true returns the information for the inspected unit instead of the player.
isPet
Boolean - If true returns the information for the inspected pet.

Returns

index
The index of the current active talent group (1 for primary / 2 for secondary).

Patch changes

Template:Mists-inline <span style="" title="Patch 5.0.4">Patch 5.0.4</span> (patch date::28-August-2012): Replaced by GetActiveSpecGroup.

See also