Bug: Animations Settings not Applying Correctly
zhpzhp opened this issue ยท 3 comments
I have confirmed this to be a bug. For some reason, the animation events are being registered after the PLAYER_LOGIN
event, causing Masque's adjustments to be overridden. The following code should help until I get a release put out. Add this at line 55 of Masque.lua
.
-- Events Frame
if WOW_RETAIL then
local MSQ_EVENTS_FRAME = CreateFrame("Frame")
MSQ_EVENTS_FRAME:Hide()
local function OnEvent(...)
local db = Core.db.profile
local UpdateEffect = Core.UpdateEffect
for k, v in pairs(db.Effects) do
UpdateEffect(k, v)
end
end
-- Delay the unregistering of events until after `PLAYER_LOGIN`.
MSQ_EVENTS_FRAME:RegisterEvent("PLAYER_ENTERING_WORLD")
MSQ_EVENTS_FRAME:SetScript("OnEvent", OnEvent)
end