Initial commit: Chatter v1.2.11 (Curse package)
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
local mod = Chatter:NewModule("Disable Fading")
|
||||
local L = LibStub("AceLocale-3.0"):GetLocale("Chatter")
|
||||
mod.modName = L["Disable Fading"]
|
||||
mod.toggleLabel = L["Disable Fading"]
|
||||
|
||||
function mod:Decorate(cf)
|
||||
cf:SetFading(nil)
|
||||
end
|
||||
|
||||
function mod:OnEnable()
|
||||
for i = 1, NUM_CHAT_WINDOWS do
|
||||
local cf = _G["ChatFrame" .. i]
|
||||
cf:SetFading(nil)
|
||||
end
|
||||
for index,name in ipairs(self.TempChatFrames) do
|
||||
local cf = _G[name]
|
||||
if cf then
|
||||
cf:SetFading(nil)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function mod:OnDisable()
|
||||
for i = 1, NUM_CHAT_WINDOWS do
|
||||
local cf = _G["ChatFrame" .. i]
|
||||
cf:SetFading(true)
|
||||
end
|
||||
for index,name in ipairs(self.TempChatFrames) do
|
||||
local cf = _G[name]
|
||||
if cf then
|
||||
cf:SetFading(true)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function mod:Info()
|
||||
return L["Makes old text disappear rather than fade out"]
|
||||
end
|
||||
Reference in New Issue
Block a user