promotional bannermobile promotional banner

Simple Loot Sparkles

Restores classic loot sparkles and keeps them enabled across graphics changes.
sparkles.png

sparkles.png

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)

Simple Loot Sparkles Team

profile avatar
  • 1
    Followers
  • 4
    Projects
  • 1.8K
    Downloads

I enjoy making micro purpose specific addons focused on accessibility and performance.

More from DharanEmpireAddons