From f43b4fca0fa82052019ac0f7d55e6d70a7d106fe Mon Sep 17 00:00:00 2001 From: Crum Date: Fri, 15 Dec 2017 21:54:34 -0600 Subject: [PATCH] update MirrorTimers skin @Loaal need some help on this one --- 2/3/4/5/6/7/ElvUI/Modules/Skins/Blizzard/MirrorTimers.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/2/3/4/5/6/7/ElvUI/Modules/Skins/Blizzard/MirrorTimers.lua b/2/3/4/5/6/7/ElvUI/Modules/Skins/Blizzard/MirrorTimers.lua index eb0a0d2..6d39d8f 100644 --- a/2/3/4/5/6/7/ElvUI/Modules/Skins/Blizzard/MirrorTimers.lua +++ b/2/3/4/5/6/7/ElvUI/Modules/Skins/Blizzard/MirrorTimers.lua @@ -3,8 +3,8 @@ local S = E:GetModule("Skins"); --Cache global variables --Lua functions -local _G = getfenv() -local format = format +local _G = _G +local floor, format = math.floor, string.format --WoW API / Variables local hooksecurefunc = hooksecurefunc @@ -18,7 +18,7 @@ local function LoadSkin() if frame.timeSinceUpdate >= 0.3 then local minutes = frame.value / 60 - local seconds = frame.value - math.floor(frame.value / 60) * 60 + local seconds = frame.value - floor(frame.value / 60) * 60 local text = frame.label:GetText() if frame.value > 0 then @@ -38,14 +38,12 @@ local function LoadSkin() local text = _G["MirrorTimer" .. i .. "Text"] E:StripTextures(mirrorTimer) - -- mirrorTimer:Size(222, 18) mirrorTimer:SetWidth(222) mirrorTimer:SetHeight(18) mirrorTimer.label = text statusBar:SetStatusBarTexture(E["media"].normTex) E:RegisterStatusBar(statusBar) E:CreateBackdrop(statusBar) - -- statusBar:Size(222, 18) statusBar:SetWidth(222) statusBar:SetHeight(18) text:Hide()