Quantcast
WoWInterface: SVN - TotemManager - Path Comparison - / Rev 88 and / Rev 89

WoWInterface SVN TotemManager

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 88 to Rev 89
    Reverse comparison

Rev 88 → Rev 89

trunk/TotemManager/TotemManager.lua
140,10 → 140,13
end
 
function TotemManager:SetScale(_, value)
totemManagerData.scale = tonumber(value);
for _, frame in pairs(self.wowFrame) do
frame:SetScale(totemManagerData.scale);
end
local nvalue = tonumber(value);
if nvalue>0 then
totemManagerData.scale = nvalue;
for _, frame in pairs(self.wowFrame) do
frame:SetScale(nvalue);
end
end
end
 
 
277,7 → 280,7
self.top = 200;
 
self.actionBarConfList = {};
self.removeMacroTextMap = {};
self.removeFuncMap = {};
 
local updater = timerUpdaterLib.totemTimerUpdaterFactory:Create(4);
 
288,7 → 291,7
{name=self.WINDFURY, raidEffect=true, effect=self.WINDFURY_EFFECT, updater=updater},
{name=self.WRATH_AIR, raidEffect=true, effect=self.WRATH_AIR_EFFECT, updater=updater},
}
self.removeMacroTextMap["airTotem"] = function () DestroyTotem(4) end;
self.removeFuncMap["airTotem"] = function () DestroyTotem(4) end;
 
updater = timerUpdaterLib.totemTimerUpdaterFactory:Create(3);
 
300,7 → 303,7
{name=self.MANA_SPRING, raidEffect=true, tickFrequency = 2, updater=updater},
{name=self.MANA_TIDE, duration = 12, tickFrequency = 3, updater=updater},
}
self.removeMacroTextMap["waterTotem"] = function () DestroyTotem(3) end;
self.removeFuncMap["waterTotem"] = function () DestroyTotem(3) end;
 
updater = timerUpdaterLib.totemTimerUpdaterFactory:Create(1);
 
323,7 → 326,7
{name=self.WRATH, raidEffect=true, effect=self.WRATH_EFFECT, updater=updater},
{name=self.FIRE_ELEMENTAL, duration = 120, updater=updater},
}
self.removeMacroTextMap["fireTotem"] = function () DestroyTotem(1) end;
self.removeFuncMap["fireTotem"] = function () DestroyTotem(1) end;
 
updater = timerUpdaterLib.totemTimerUpdaterFactory:Create(2);
 
349,7 → 352,7
{name=self.TREMOR, duration = 120, tickFrequency = 3, updater=updater},
{name=self.EARTH_ELEMENTAL, duration = 120, updater=updater},
}
self.removeMacroTextMap["earthTotem"] = function () DestroyTotem(2) end;
self.removeFuncMap["earthTotem"] = function () DestroyTotem(2) end;
 
self.actionBarConfList["weapon"] = {
{name=self.WINDFURY_WEAPON, duration = 1800},
368,7 → 371,7
for _,v in pairs(self.actionBarConfList["shield"]) do
v.updater = timerUpdaterLib.buffTimerUpdaterFactory:Create(v.name);
end
self.removeMacroTextMap["shield"] = function ()
self.removeFuncMap["shield"] = function ()
CancelUnitBuff("player", self.EARTH_SHIELD);
CancelUnitBuff("player", self.LIGHTNING_SHIELD);
CancelUnitBuff("player", self.WATER_SHIELD);
396,7 → 399,7
 
local rendererCreatorFunc;
if self:GetActionBarSkin()==1 then
rendererCreatorFunc = function () return squareActionBarRendererLib.squareActionBarRendererFactory:Create(nil, 30, 30); end
rendererCreatorFunc = function () return squareActionBarRendererLib.squareActionBarRendererFactory:Create(30, 30); end
else
local texture, selectedTexture = "Interface\\AddOns\\TotemManager\\textures\\SerenityBase", "Interface\\AddOns\\TotemManager\\textures\\SerenityBaseGreen";
 
418,7 → 421,7
{"airTotem", "waterTotem", "fireTotem", "earthTotem"},
self.actionBarConfList,
"totem",
self.removeMacroTextMap,
self.removeFuncMap,
totemManagerData["totemActionFrame"],
messages,
rendererCreatorFunc
436,7 → 439,7
{"weapon", "shield", "earthShield"},
self.actionBarConfList,
"buff",
self.removeMacroTextMap,
self.removeFuncMap,
totemManagerData["buffActionFrame"],
messages,
rendererCreatorFunc
448,7 → 451,7
{"ankh"},
self.actionBarConfList,
"cooldown",
self.removeMacroTextMap,
self.removeFuncMap,
totemManagerData["ankhActionFrame"],
messages,
rendererCreatorFunc