fonts: add option to disable chat text shadow

This commit is contained in:
shagu
2017-12-22 01:09:21 +01:00
parent 6bc822d927
commit 3715b01665
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -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", "[]")
+6 -1
View File
@@ -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
+1
View File
@@ -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")