Hi,
if i do in my addon:
Lua Code:
if slot then
button.icon:SetTexture(GetActionTexture(slot))
button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
button.icon:Show()
button.slot = slot
print(GetActionInfo(slot))
end
the print says:
macro 121
macro 122
item 156833
spell 116 spell
macro 122
macro 122
macro 122
|
But when i do:
Lua Code:
if slot then
button.icon:SetTexture(GetActionTexture(slot))
button.icon:SetTexCoord(0.1, 0.9, 0.1, 0.9)
button.icon:Show()
button.slot = slot
local body = GetActionInfo(slot)
print(body)
end
the print says:
macro
macro
item
spell
nil
macro
macro
nil
nil
nil
nil
nil
nil
nil
nil
macro
nil
nil
|
why ?
I need the number of the macro..
Thank in advance!