Navigation menu

WoW:ActionSlot: Difference between revisions

Jump to navigation Jump to search
m (catfix, Replaced: {{wowapitype}} → {{wowapitype}}<br>)
Line 58: Line 58:




If you'd rather avoid function creation, the following macro does the same thing:
If you'd rather avoid function creation, the following macro does the same thing (break into several lines for easy read):
<pre>
<pre>
/run local l = 0;for l = 1, 120 do local t = GetActionText(l);local x = GetActionTexture(l);if x then local m = "Slot " .. l .. ": [" .. x .. "]";if t then m = m .. " \"" .. t .. "\"";end DEFAULT_CHAT_FRAME:AddMessage(m);end end
/run local l = 0;
for l = 1, 120 do local t = GetActionText(l);
local x = GetActionTexture(l);
if x then local m = "Slot " .. l .. ": [" .. x .. "]";
if t then m = m .. " \"" .. t .. "\"";
end DEFAULT_CHAT_FRAME:AddMessage(m);
end end
</pre>
</pre>




{{Stub/API}}
{{Stub/API}}
Anonymous user