From 5f94695ab47f3effe4df844069f79c806e6cff6a Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 30 Aug 2012 04:53:56 +0000 Subject: [PATCH] - Updated non-'graphical' display modes for holy power to not squish the icons. --- modules/HolyPower.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/modules/HolyPower.lua b/modules/HolyPower.lua index dd7defa..46dd173 100644 --- a/modules/HolyPower.lua +++ b/modules/HolyPower.lua @@ -36,6 +36,27 @@ function HolyPower.prototype:init() 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() local opts = HolyPower.super.prototype.GetOptions(self)