mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-28 08:54:43 +00:00
Install Config (NOT FINISHED)
It is a start @Bunny67 the Datatext/System.lua may need tweak
This commit is contained in:
@@ -5,7 +5,7 @@ if (_LibAnim and _LibAnim >= Version) then
|
||||
return
|
||||
end
|
||||
|
||||
local _G = getfenv()
|
||||
local _G = _G
|
||||
local cos = cos
|
||||
local sin = sin
|
||||
local pairs = pairs
|
||||
@@ -22,15 +22,16 @@ local UpdateFuncs = {}
|
||||
local Callbacks = {["onplay"] = {}, ["onpause"] = {}, ["onresume"] = {}, ["onstop"] = {}, ["onreset"] = {}, ["onfinished"] = {}}
|
||||
|
||||
-- Update all current animations
|
||||
local AnimationOnUpdate = function(self, elapsed)
|
||||
for i = 1, getn(self) do
|
||||
if self[i] then -- Double check the the index still exists, due to pauses/stops removing them on the fly
|
||||
self[i]:Update(elapsed, i)
|
||||
local AnimationOnUpdate = function()
|
||||
local elapsed = arg1
|
||||
for i = 1, getn(this) do
|
||||
if this[i] then -- Double check the the index still exists, due to pauses/stops removing them on the fly
|
||||
this[i]:Update(elapsed, i)
|
||||
end
|
||||
end
|
||||
|
||||
if (getn(self) == 0) then
|
||||
self:SetScript("OnUpdate", nil)
|
||||
if (getn(this) == 0) then
|
||||
this:SetScript("OnUpdate", nil)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user