m
Tweaked the example code so it would not cause an error on blank button slots.
No edit summary |
m (Tweaked the example code so it would not cause an error on blank button slots.) |
||
| Line 23: | Line 23: | ||
if not(lActionText) then lActionText = "" end | if not(lActionText) then lActionText = "" end | ||
local lActionTexture = GetActionTexture(lActionSlot) | local lActionTexture = GetActionTexture(lActionSlot) | ||
if (lActionText) | if (lActionText) and (lActionTexture) then | ||
local lMessage = lActionSlot..". "..lActionText | local lMessage = lActionSlot..". "..lActionText | ||
lMessage = lMessage.." ["..lActionTexture.."]" | lMessage = lMessage.." ["..lActionTexture.."]" | ||