- Updated non-'graphical' display modes for holy power to not squish the icons.

This commit is contained in:
Parnic
2012-08-30 04:53:56 +00:00
parent 2035c0f576
commit 5f94695ab4

View File

@ -36,6 +36,27 @@ function HolyPower.prototype:init()
end end
end end
function HolyPower.prototype:SetDisplayMode()
local updated = false
if self.moduleSettings.runeMode == "Graphical" then
if self.runeHeight ~= 22 then
self.runeHeight = 22
updated = true
end
else
if self.runeHeight ~= self.runeWidth then
self.runeHeight = self.runeWidth
updated = true
end
end
if updated then
self:CreateRuneFrame()
end
HolyPower.super.prototype.SetDisplayMode(self)
end
function HolyPower.prototype:GetOptions() function HolyPower.prototype:GetOptions()
local opts = HolyPower.super.prototype.GetOptions(self) local opts = HolyPower.super.prototype.GetOptions(self)