WoW:API GetTrainerSelectionIndex

From AddOn Studio
Revision as of 19:41, 29 May 2005 by WoWWiki>Xharze
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
GetTradeSkillSelectionIndex -Documentation by Xharze-

Returns the index of the selected trainer service.

GetTrainerSelectionIndex();

Arguments
none

Returns
Number selectionIndex
selectionIndex
The index of the selected trainer service (the index changes when a subclass header is collapsed or expanded. And the subclass headers are included in the index).

Example

Prints the index of the selected trainer service to the chatwindow.

ChatFrame1:AddMessage(GetTrainerSelectionIndex());



Template:WoW API