mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
unitframes: add option to set font outline style
This commit is contained in:
@@ -39,6 +39,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("global", nil, "font_size", "12")
|
||||
pfUI:UpdateConfig("global", nil, "font_unit", "Interface\\AddOns\\pfUI\\fonts\\BigNoodleTitling.ttf")
|
||||
pfUI:UpdateConfig("global", nil, "font_unit_size", "12")
|
||||
pfUI:UpdateConfig("global", nil, "font_unit_style", "OUTLINE")
|
||||
pfUI:UpdateConfig("global", nil, "font_combat", "Interface\\AddOns\\pfUI\\fonts\\Continuum.ttf")
|
||||
|
||||
pfUI:UpdateConfig("global", nil, "force_region", "1")
|
||||
|
||||
+6
-6
@@ -472,7 +472,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f:UnregisterEvent("UNIT_COMBAT")
|
||||
end
|
||||
|
||||
f.hpLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.hpLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.hpLeftText:SetJustifyH("LEFT")
|
||||
f.hpLeftText:SetFontObject(GameFontWhite)
|
||||
f.hpLeftText:SetParent(f.hp.bar)
|
||||
@@ -480,7 +480,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f.hpLeftText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1)
|
||||
f.hpLeftText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0)
|
||||
|
||||
f.hpRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.hpRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.hpRightText:SetJustifyH("RIGHT")
|
||||
f.hpRightText:SetFontObject(GameFontWhite)
|
||||
f.hpRightText:SetParent(f.hp.bar)
|
||||
@@ -488,7 +488,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f.hpRightText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1)
|
||||
f.hpRightText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0)
|
||||
|
||||
f.hpCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.hpCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.hpCenterText:SetJustifyH("CENTER")
|
||||
f.hpCenterText:SetFontObject(GameFontWhite)
|
||||
f.hpCenterText:SetParent(f.hp.bar)
|
||||
@@ -496,7 +496,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f.hpCenterText:SetPoint("TOPLEFT",f.hp.bar, "TOPLEFT", 2*default_border, 1)
|
||||
f.hpCenterText:SetPoint("BOTTOMRIGHT",f.hp.bar, "BOTTOMRIGHT", -2*default_border, 0)
|
||||
|
||||
f.powerLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.powerLeftText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.powerLeftText:SetJustifyH("LEFT")
|
||||
f.powerLeftText:SetFontObject(GameFontWhite)
|
||||
f.powerLeftText:SetParent(f.power.bar)
|
||||
@@ -504,7 +504,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f.powerLeftText:SetPoint("TOPLEFT",f.power.bar, "TOPLEFT", 2*default_border, 1)
|
||||
f.powerLeftText:SetPoint("BOTTOMRIGHT",f.power.bar, "BOTTOMRIGHT", -2*default_border, 0)
|
||||
|
||||
f.powerRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.powerRightText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.powerRightText:SetJustifyH("RIGHT")
|
||||
f.powerRightText:SetFontObject(GameFontWhite)
|
||||
f.powerRightText:SetParent(f.power.bar)
|
||||
@@ -512,7 +512,7 @@ function pfUI.uf:UpdateConfig()
|
||||
f.powerRightText:SetPoint("TOPLEFT",f.power.bar, "TOPLEFT", 2*default_border, 1)
|
||||
f.powerRightText:SetPoint("BOTTOMRIGHT",f.power.bar, "BOTTOMRIGHT", -2*default_border, 0)
|
||||
|
||||
f.powerCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
f.powerCenterText:SetFont(pfUI.font_unit, C.global.font_unit_size, C.global.font_unit_style)
|
||||
f.powerCenterText:SetJustifyH("CENTER")
|
||||
f.powerCenterText:SetFontObject(GameFontWhite)
|
||||
f.powerCenterText:SetParent(f.power.bar)
|
||||
|
||||
@@ -1389,6 +1389,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
|
||||
CreateConfig(nil, T["Standard Text Font Size"], C.global, "font_size")
|
||||
CreateConfig(nil, T["Unit Frame Text Font"], C.global, "font_unit", "dropdown", pfUI.gui.dropdowns.fonts)
|
||||
CreateConfig(nil, T["Unit Frame Text Size"], C.global, "font_unit_size")
|
||||
CreateConfig(nil, T["Unit Frame Text Style"], C.global, "font_unit_style", "dropdown", pfUI.gui.dropdowns.fontstyle)
|
||||
CreateConfig(nil, T["Scrolling Combat Text Font"], C.global, "font_combat", "dropdown", pfUI.gui.dropdowns.fonts)
|
||||
CreateConfig(U["pixelperfect"], T["Enable UI-Scale"], C.global, "pixelperfect", "dropdown", pfUI.gui.dropdowns.scaling)
|
||||
CreateConfig(nil, T["Enable Offscreen Frame Positions"], C.global, "offscreen", "checkbox")
|
||||
|
||||
Reference in New Issue
Block a user