mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-07 06:00:00 +00:00
fonts: add option to disable chat text shadow
This commit is contained in:
@@ -508,6 +508,7 @@ function pfUI:LoadConfig()
|
||||
|
||||
pfUI:UpdateConfig("chat", "text", "input_width", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "input_height", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "outline", "1")
|
||||
pfUI:UpdateConfig("chat", "text", "time", "0")
|
||||
pfUI:UpdateConfig("chat", "text", "timeformat", "%H:%M:%S")
|
||||
pfUI:UpdateConfig("chat", "text", "timebracket", "[]")
|
||||
|
||||
Vendored
+6
-1
@@ -62,8 +62,13 @@ function pfUI.environment:UpdateFonts()
|
||||
WorldMapTextFont:SetFont(pfUI.font_default, 102, "THICK")
|
||||
InvoiceTextFontNormal:SetFont(pfUI.font_default, 12)
|
||||
InvoiceTextFontSmall:SetFont(pfUI.font_default, 12)
|
||||
ChatFontNormal:SetFont(pfUI.font_default, 13, "OUTLINE")
|
||||
CombatTextFont:SetFont(pfUI.font_combat, 25)
|
||||
|
||||
if pfUI_config.chat.text.outline == "1" then
|
||||
ChatFontNormal:SetFont(pfUI.font_default, 13, "OUTLINE")
|
||||
else
|
||||
ChatFontNormal:SetFont(pfUI.font_default, 13)
|
||||
end
|
||||
end
|
||||
|
||||
-- run environment update
|
||||
|
||||
@@ -1339,6 +1339,7 @@ pfUI:RegisterModule("gui", function ()
|
||||
CreateConfig(this, T["Enable \"Loot & Spam\" Chat Window"], C.chat.right, "enable", "checkbox")
|
||||
CreateConfig(this, T["Inputbox Width"], C.chat.text, "input_width")
|
||||
CreateConfig(this, T["Inputbox Height"], C.chat.text, "input_height")
|
||||
CreateConfig(this, T["Enable Text Shadow"], C.chat.text, "outline", "checkbox")
|
||||
CreateConfig(this, T["Enable Timestamps"], C.chat.text, "time", "checkbox")
|
||||
CreateConfig(this, T["Timestamp Format"], C.chat.text, "timeformat", nil, nil, nil, nil, "STRING")
|
||||
CreateConfig(this, T["Timestamp Brackets"], C.chat.text, "timebracket", nil, nil, nil, nil, "STRING")
|
||||
|
||||
Reference in New Issue
Block a user