mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
cleanup
This commit is contained in:
@@ -3,7 +3,7 @@ local AceCore, oldminor = LibStub:NewLibrary(ACECORE_MAJOR, ACECORE_MINOR)
|
||||
|
||||
if not AceCore then return end -- No upgrade needed
|
||||
|
||||
AceCore._G = AceCore._G or getfenv()
|
||||
AceCore._G = AceCore._G or _G
|
||||
local _G = AceCore._G
|
||||
local strsub, strgsub, strfind = string.sub, string.gsub, string.find
|
||||
local tremove, tconcat = table.remove, table.concat
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
-- ----------------------------------------------------------------------------
|
||||
-- Localized Lua globals.
|
||||
-- ----------------------------------------------------------------------------
|
||||
local _G = getfenv(0)
|
||||
local _G = _G
|
||||
-- ----------------------------------------------------------------------------
|
||||
local MAJOR_VERSION = "LibEasyMenu-1.04.7030024484"
|
||||
local MINOR_VERSION = 90000 + 19
|
||||
|
||||
@@ -432,13 +432,13 @@ local function onUpdate(self, elapsed)
|
||||
if(self.CustomDelayText) then
|
||||
self:CustomDelayText(duration)
|
||||
else
|
||||
self.Time:SetFormattedText('%.1f|cffff0000-%.1f|r', duration, self.delay)
|
||||
self.Time:SetText(format('%.1f|cffff0000-%.1f|r', duration, self.delay))
|
||||
end
|
||||
else
|
||||
if(self.CustomTimeText) then
|
||||
self:CustomTimeText(duration)
|
||||
else
|
||||
self.Time:SetFormattedText('%.1f', duration)
|
||||
self.Time:SetText(format('%.1f', duration))
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -465,13 +465,13 @@ local function onUpdate(self, elapsed)
|
||||
if(self.CustomDelayText) then
|
||||
self:CustomDelayText(duration)
|
||||
else
|
||||
self.Time:SetFormattedText('%.1f|cffff0000-%.1f|r', duration, self.delay)
|
||||
self.Time:SetText(format('%.1f|cffff0000-%.1f|r', duration, self.delay))
|
||||
end
|
||||
else
|
||||
if(self.CustomTimeText) then
|
||||
self:CustomTimeText(duration)
|
||||
else
|
||||
self.Time:SetFormattedText('%.1f', duration)
|
||||
self.Time:SetText(format('%.1f', duration))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user