mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update MirrorTimers skin
@Loaal need some help on this one
This commit is contained in:
@@ -3,8 +3,8 @@ local S = E:GetModule("Skins");
|
|||||||
|
|
||||||
--Cache global variables
|
--Cache global variables
|
||||||
--Lua functions
|
--Lua functions
|
||||||
local _G = getfenv()
|
local _G = _G
|
||||||
local format = format
|
local floor, format = math.floor, string.format
|
||||||
--WoW API / Variables
|
--WoW API / Variables
|
||||||
local hooksecurefunc = hooksecurefunc
|
local hooksecurefunc = hooksecurefunc
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ local function LoadSkin()
|
|||||||
|
|
||||||
if frame.timeSinceUpdate >= 0.3 then
|
if frame.timeSinceUpdate >= 0.3 then
|
||||||
local minutes = frame.value / 60
|
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()
|
local text = frame.label:GetText()
|
||||||
|
|
||||||
if frame.value > 0 then
|
if frame.value > 0 then
|
||||||
@@ -38,14 +38,12 @@ local function LoadSkin()
|
|||||||
local text = _G["MirrorTimer" .. i .. "Text"]
|
local text = _G["MirrorTimer" .. i .. "Text"]
|
||||||
|
|
||||||
E:StripTextures(mirrorTimer)
|
E:StripTextures(mirrorTimer)
|
||||||
-- mirrorTimer:Size(222, 18)
|
|
||||||
mirrorTimer:SetWidth(222)
|
mirrorTimer:SetWidth(222)
|
||||||
mirrorTimer:SetHeight(18)
|
mirrorTimer:SetHeight(18)
|
||||||
mirrorTimer.label = text
|
mirrorTimer.label = text
|
||||||
statusBar:SetStatusBarTexture(E["media"].normTex)
|
statusBar:SetStatusBarTexture(E["media"].normTex)
|
||||||
E:RegisterStatusBar(statusBar)
|
E:RegisterStatusBar(statusBar)
|
||||||
E:CreateBackdrop(statusBar)
|
E:CreateBackdrop(statusBar)
|
||||||
-- statusBar:Size(222, 18)
|
|
||||||
statusBar:SetWidth(222)
|
statusBar:SetWidth(222)
|
||||||
statusBar:SetHeight(18)
|
statusBar:SetHeight(18)
|
||||||
text:Hide()
|
text:Hide()
|
||||||
|
|||||||
Reference in New Issue
Block a user