WoWInterface SVN DagAssist

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 17 to Rev 18
    Reverse comparison

Rev 17 → Rev 18

DagAssist.lua
145,7 → 145,7
if (self.TimeSinceLastUpdate) then
self.TimeSinceLastUpdate = self.TimeSinceLastUpdate + elapsed;
 
if (self.TimeSinceLastUpdate > 0.1) then
if (self.TimeSinceLastUpdate > 0.5) then
self.TimeSinceLastUpdate = 0;
 
local allIconsSet = true;
157,7 → 157,24
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;