15 lines
677 B
Lua
15 lines
677 B
Lua
-- OctoTextSize: addon-local factory; Blizzard CreateFrame is unchanged.
|
|
local CreateFrame = OctoTextSize and OctoTextSize.WrapFactory(CreateFrame) or CreateFrame
|
|
-- The original UI has no Cooldown Manager. Apply the default once per account.
|
|
local frame = CreateFrame("Frame")
|
|
frame:RegisterEvent("PLAYER_LOGIN")
|
|
frame:SetScript("OnEvent", function(self)
|
|
self:UnregisterEvent("PLAYER_LOGIN")
|
|
if WoWHybridCooldownViewerDefaultApplied then return end
|
|
local name = "cooldownViewerEnabled"
|
|
local value = C_CVar.GetCVar(name)
|
|
if value == "0" or (value == "1" and C_CVar.SetCVar(name, "0")) then
|
|
WoWHybridCooldownViewerDefaultApplied = true
|
|
end
|
|
end)
|