WoW:API GetTrainerSelectionIndex: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 25: Line 25:


----
----
{{Template:WoW API}}
{{WoW API}}
 
[[Category:API TradeSkill Functions|GetTradeskillSelectionIndex]]

Revision as of 05:50, 4 January 2006

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