mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 05:00:02 +00:00
chat: add option to disable chat tab flashing
This commit is contained in:
+6
-1
@@ -366,7 +366,12 @@ pfUI:RegisterModule("chat", function ()
|
||||
_G["ChatFrame" .. i .. "TabLeft"]:SetAlpha(0)
|
||||
_G["ChatFrame" .. i .. "TabMiddle"]:SetAlpha(0)
|
||||
_G["ChatFrame" .. i .. "TabRight"]:SetAlpha(0)
|
||||
_G["ChatFrame" .. i .. "TabFlash"]:SetAllPoints(_G["ChatFrame" .. i .. "TabText"])
|
||||
|
||||
if C.chat.global.chatflash == "1" then
|
||||
_G["ChatFrame" .. i .. "TabFlash"]:SetAllPoints(_G["ChatFrame" .. i .. "TabText"])
|
||||
else
|
||||
_G["ChatFrame" .. i .. "TabFlash"].Show = function() return end
|
||||
end
|
||||
|
||||
local _, class = UnitClass("player")
|
||||
_G["ChatFrame" .. i .. "TabText"]:SetTextColor(RAID_CLASS_COLORS[class].r + .3 * .5, RAID_CLASS_COLORS[class].g + .3 * .5, RAID_CLASS_COLORS[class].b + .3 * .5, 1)
|
||||
|
||||
@@ -1497,6 +1497,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(this, T["Hide Combat Log"], C.chat.global, "combathide", "checkbox")
|
||||
CreateConfig(this, T["Enable Chat Dock Background"], C.chat.global, "tabdock", "checkbox")
|
||||
CreateConfig(this, T["Only Show Chat Dock On Mouseover"], C.chat.global, "tabmouse", "checkbox")
|
||||
CreateConfig(this, T["Enable Chat Tab Flashing"], C.chat.global, "chatflash", "checkbox")
|
||||
CreateConfig(this, T["Enable Custom Colors"], C.chat.global, "custombg", "checkbox")
|
||||
CreateConfig(this, T["Chat Background Color"], C.chat.global, "background", "color")
|
||||
CreateConfig(this, T["Chat Border Color"], C.chat.global, "border", "color")
|
||||
|
||||
Reference in New Issue
Block a user