WoW:API GetTrainerSelectionIndex: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
(upgraded deprecated template)
Line 1: Line 1:
{{wowapi}}
  <center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>
  <center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>


Line 22: Line 23:
Prints the index of the selected trainer service to the chatwindow.
Prints the index of the selected trainer service to the chatwindow.
  ChatFrame1:AddMessage(GetTrainerSelectionIndex());
  ChatFrame1:AddMessage(GetTrainerSelectionIndex());
----
{{WoW API}}

Revision as of 17:28, 6 January 2007

WoW API < GetTrainerSelectionIndex

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());