WoW:API GetNumMacroIcons: Difference between revisions

m
Move page script moved page API GetNumMacroIcons to WoW:API GetNumMacroIcons without leaving a redirect
(docs)
 
m (Move page script moved page API GetNumMacroIcons to WoW:API GetNumMacroIcons without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 8: Line 8:


==Example==
==Example==
  local numIcons, i = GetNumMacroIcons(); -- i will be nil, but we do not really care at this point.
  local numIcons = GetNumMacroIcons()
  for i=1,numIcons do
  for i=1,numIcons do
   DEFAULT_CHAT_FRAME:AddMessage(string.format("Icon %d: %s",i,GetMacroIconInfo(i)));
   DEFAULT_CHAT_FRAME:AddMessage(string.format("Icon %d: %s",i,GetMacroIconInfo(i)));
Anonymous user