mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-26 09:26:02 +00:00
chat: add option to disable chat tab flashing
This commit is contained in:
@@ -468,6 +468,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("chat", "global", "hidecombat", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "tabdock", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "tabmouse", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "chatflash", "1")
|
||||
pfUI:UpdateConfig("chat", "global", "custombg", "0")
|
||||
pfUI:UpdateConfig("chat", "global", "background", ".2,.2,.2,.5")
|
||||
pfUI:UpdateConfig("chat", "global", "border", ".4,.4,.4,.5")
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["deDE"] = {
|
||||
["Enable Castbars"] = nil,
|
||||
["Enable Chat Dock Background"] = nil,
|
||||
["Enable Chat Fade"] = nil,
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = nil,
|
||||
["Enable Class Colors"] = nil,
|
||||
["Enable Class Colors On Enemies"] = nil,
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["enUS"] = {
|
||||
["Enable Castbars"] = nil,
|
||||
["Enable Chat Dock Background"] = nil,
|
||||
["Enable Chat Fade"] = nil,
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = nil,
|
||||
["Enable Class Colors"] = nil,
|
||||
["Enable Class Colors On Enemies"] = nil,
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["frFR"] = {
|
||||
["Enable Castbars"] = "Activer les barres d'incantation",
|
||||
["Enable Chat Dock Background"] = "Activer les onglets de la fenêtre du chat",
|
||||
["Enable Chat Fade"] = "Activer le masquage automatique de la fenêtre du chat",
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = "Activer le texte basé sur la couleur la classe",
|
||||
["Enable Class Colors"] = "Activer la couleur en fonction de la classe",
|
||||
["Enable Class Colors On Enemies"] = "Activer la couleur de la classe sur les cibles ennemies",
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["koKR"] = {
|
||||
["Enable Castbars"] = "캐스트바 활성화",
|
||||
["Enable Chat Dock Background"] = "채팅 덕 활성화",
|
||||
["Enable Chat Fade"] = "채팅 사라짐 활성화",
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = "텍스트에 클래스(직업)색상 활성화",
|
||||
["Enable Class Colors"] = "클래스(직업) 색상 활성화",
|
||||
["Enable Class Colors On Enemies"] = "적대적 클래스(직업)색상 활성화",
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["ruRU"] = {
|
||||
["Enable Castbars"] = "Включить панели применения",
|
||||
["Enable Chat Dock Background"] = "Включить фон панели чата",
|
||||
["Enable Chat Fade"] = "Включить затухание чата",
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = "Включить цвета классов в тексте",
|
||||
["Enable Class Colors On Enemies"] = "Включить цвета классов на врагах",
|
||||
["Enable Class Colors On Friends"] = "Включить цвета классов на друзьях",
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["zhCN"] = {
|
||||
["Enable Castbars"] = "显示敌对施法条",
|
||||
["Enable Chat Dock Background"] = "显示聊天窗口停靠栏",
|
||||
["Enable Chat Fade"] = "聊天记录淡出",
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = "启用职业文字颜色样式",
|
||||
["Enable Class Colors On Enemies"] = "显示敌军职业颜色",
|
||||
["Enable Class Colors On Friends"] = "显示友军职业颜色",
|
||||
|
||||
Vendored
+1
@@ -123,6 +123,7 @@ pfUI_translation["zhTW"] = {
|
||||
["Enable Castbars"] = "顯示敵對施法條",
|
||||
["Enable Chat Dock Background"] = "顯示聊天視窗停靠欄",
|
||||
["Enable Chat Fade"] = "聊天記錄淡出",
|
||||
["Enable Chat Tab Flashing"] = nil,
|
||||
["Enable Class Color in Text"] = "啟用職業文字顏色樣式",
|
||||
["Enable Class Colors On Enemies"] = "顯示敵軍職業顏色",
|
||||
["Enable Class Colors On Friends"] = "顯示友軍職業顏色",
|
||||
|
||||
+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