Description
Restores classic loot sparkles and keeps them enabled, even after graphics settings changes or client restarts.
How it works
The addon sets a single CVar and automatically reapplies it whenever needed.
Other interactions
This also affects Quest NPCs that have a new quest for you.
To disable
Original game settings are restored when logging out normally.
After logout close the game and uninstall the addon.
Code Review for those interested.
local cvar = "outlineModeShowLootEffectWhenDisabled"
-- Register events.
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LOGIN")
f:RegisterEvent("GX_RESTARTED")
f:RegisterEvent("PLAYER_REGEN_ENABLED")
f:RegisterEvent("PLAYER_LOGOUT")
f:SetScript("OnEvent", function(_, event)
if event == "PLAYER_LOGOUT" then
if C_CVar.GetCVar(cvar) ~= "0" then
C_CVar.SetCVar(cvar, "0")
end
return
end
if InCombatLockdown() then return end
if C_CVar.GetCVar(cvar) ~= "1" then
C_CVar.SetCVar(cvar, "1")
end
end)


