Wikia

WoWWiki

API GetTradeSkillSelectionIndex

Talk0
98,517pages on
this wiki

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;
Advertisement | Your ad here

Photos

Add a Photo
62,044photos on this wiki
See all photos >

Recent Wiki Activity

See more >

Around Wikia's network

Random Wiki