Rework battle pass timer into multiple weakauras
This commit is contained in:
21
FreshShit/BattlePassTimer/BattlePassFrameController/init.lua
Normal file
21
FreshShit/BattlePassTimer/BattlePassFrameController/init.lua
Normal file
@@ -0,0 +1,21 @@
|
||||
aura_env.BattlePass = {
|
||||
Show = function()
|
||||
if not uDailyRewFrame:IsVisible() then
|
||||
-- uDailyRewFrame:Show()
|
||||
udailyRewardIcon:Click()
|
||||
end
|
||||
end,
|
||||
Hide = function()
|
||||
if uDailyRewFrame:IsVisible() then
|
||||
uDailyRewFrame:Hide()
|
||||
end
|
||||
end,
|
||||
}
|
||||
|
||||
local aura_env = aura_env
|
||||
aura_env.Tick = function()
|
||||
aura_env.BattlePass.Show()
|
||||
C_Timer.After(0.1, function()
|
||||
WeakAuras.ScanEvents("PINKY_BPASS_OPEN")
|
||||
end)
|
||||
end
|
||||
Reference in New Issue
Block a user