btn:SetText(actionInfo.Name); |
if (actionInfo.Texture) then |
btn.Texture:SetTexture(actionInfo.Texture); |
btn.IconSet = true; |
|
if (InCombatLockdown() ~= 1) then |
if btn.Action.DA_ActionType == "item" then |
btn:SetAttribute("type","item"); |
btn:SetAttribute("*item1", actionInfo.Name); |
|
elseif btn.Action.DA_ActionType == "spell" then |
if (btn.Action.DA_ActionSubType == "spell") then |
btn:SetAttribute("type","spell"); |
btn:SetAttribute("*spell1", actionInfo.Name); |
else |
btn:SetAttribute("type","pet"); |
btn:SetAttribute("*pet1", actionInfo.Name); |
end |
end |
|
btn.IconSet = true; |
end |
else |
btn.IconSet = false; |
allIconsSet = false; |