Wikia

WoWWiki

API GetTradeSkillSelectionIndex

Talk0
101,351pages on
this wiki
Revision as of 23:10, December 23, 2006 by Starlightblunder (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetTradeSkillSelectionIndex

Returns the index of the currently selected trade skill.

local tradeSkillIndex = GetTradeSkillSelectionIndex();

ParametersEdit

ReturnsEdit

tradeSkillIndex 
Number - The index of the currently selected trade skill, or 0 if none selected.

ExampleEdit

if ( GetTradeSkillSelectionIndex() > 1 ) then
  TradeSkillFrame_SetSelection(GetTradeSkillSelectionIndex());
else
  if ( GetNumTradeSkills() > 0 ) then
    TradeSkillFrame_SetSelection(GetFirstTradeSkill());
  end;
end;

Around Wikia's network

Random Wiki