WoW:API GetTrainerSelectionIndex: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetTrainerSelectionIndex to API GetTrainerSelectionIndex without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''GetTradeSkillSelectionIndex''' ''-Documentation by [[User:Xharze|Xharze]]-''</center>
{{wowapi}}


Returns the index of the selected trainer service.
Returns the index of the selected trainer service.
Line 22: Line 22:
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());
----
{{Template:WoW API}}
[[Category:API TradeSkill Functions|GetTradeskillSelectionIndex]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetTrainerSelectionIndex

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