WoWInterface SVN RuneWatch

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 8 to Rev 9
    Reverse comparison

Rev 8 → Rev 9

trunk/Options.lua
15,6 → 15,16
desc = "Toggles the ui's locked state, preventing it from being moved.",
get = function(info) return RuneWatch.db.locked end,
set = function(info, v) RuneWatch.db.locked = v; RuneWatch:GuiUpdate(); end
},
scale = {
type = "range",
name = "UI Scale",
desc = "Scales the UI to a factor of the default.",
min = 0.1,
max = 5,
step = 0.1,
get = function(info) return RuneWatch.db.scale end,
set = function(info, v) RuneWatch.db.scale = v; RuneWatch:GuiUpdate(); end
}
}
}
trunk/RuneWatch.lua
19,7 → 19,8
self.dbase = LibStub("AceDB-3.0"):New("RuneWatchDB");
self.dbase:RegisterDefaults({
profile = {
locked = true
locked = true,
scale = 1.0
}
});
self.db = self.dbase.profile;
235,6 → 236,9
self.Gui.Drag:Show();
end
 
-- UI Scale
self.Gui.Anchor:SetScale(RuneWatch.db.scale);
 
local _, uclass = UnitClass("Player");
if (uclass ~= "DEATHKNIGHT") then
--self:Print("Not a Deathknight");
267,7 → 271,14
local offset = GetTime() - start;
local timer = ceil(duration - offset);
 
self.Timer:SetText(timer);
-- Fix for rune-timeout when dead
if (timer <= 0) then
self.Timer:Hide();
self.Image:SetVertexColor(1,1,1,1);
self:SetScript("OnUpdate", nil);
else
self.Timer:SetText(timer);
end
end
 
if ( runeReady ) then