mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 13:40:00 +00:00
fonts: integrate upgrade paths
This commit is contained in:
@@ -461,7 +461,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
|
||||
local hotkey = _G["ShapeshiftButton"..i..'HotKey']
|
||||
hotkey:SetAllPoints(button)
|
||||
hotkey:SetFont(pfUI.font_square, C.global.font_square_size -2, "OUTLINE")
|
||||
hotkey:SetFont(pfUI.font_unit, C.global.font_unit_size -2, "OUTLINE")
|
||||
hotkey:SetJustifyH("RIGHT")
|
||||
hotkey:SetJustifyV("TOP")
|
||||
end
|
||||
@@ -520,7 +520,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
local hotkey = _G[actionbutton..i..'HotKey']
|
||||
if C.bars.showkeybind == "1" then
|
||||
hotkey:SetAllPoints(button)
|
||||
hotkey:SetFont(pfUI.font_square, C.global.font_square_size -2, "OUTLINE")
|
||||
hotkey:SetFont(pfUI.font_unit, C.global.font_unit_size -2, "OUTLINE")
|
||||
hotkey:SetJustifyH("RIGHT")
|
||||
hotkey:SetJustifyV("TOP")
|
||||
else
|
||||
@@ -530,7 +530,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
local name = _G[actionbutton..i..'Name']
|
||||
if C.bars.showmacro == "1" then
|
||||
name:SetAllPoints(button)
|
||||
name:SetFont(pfUI.font_square, C.global.font_square_size -2, "OUTLINE")
|
||||
name:SetFont(pfUI.font_unit, C.global.font_unit_size -2, "OUTLINE")
|
||||
name:SetJustifyH("CENTER")
|
||||
name:SetJustifyV("BOTTOM")
|
||||
else
|
||||
|
||||
+1
-1
@@ -291,7 +291,7 @@ pfUI:RegisterModule("bags", function ()
|
||||
end
|
||||
|
||||
local count = _G[pfUI.bags[bag].slots[slot].frame:GetName() .. "Count"]
|
||||
count:SetFont(pfUI.font_square, C.global.font_square_size, "OUTLINE")
|
||||
count:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
count:SetAllPoints()
|
||||
count:SetJustifyH("RIGHT")
|
||||
count:SetJustifyV("BOTTOM")
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
pfUI:RegisterModule("castbar", function ()
|
||||
|
||||
local font = C.castbar.use_unitfonts == "1" and pfUI.font_square or pfUI.font_default
|
||||
local font_size = C.castbar.use_unitfonts == "1" and C.global.font_square_size or C.global.font_size
|
||||
local font = C.castbar.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local font_size = C.castbar.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
|
||||
local default_border = C.appearance.border.default
|
||||
if C.appearance.border.unitframes ~= "-1" then
|
||||
|
||||
+2
-2
@@ -15,8 +15,8 @@ pfUI:RegisterModule("chat", function ()
|
||||
"and world channels and lootinformation to the right chat.")
|
||||
end
|
||||
|
||||
local panelfont = C.panel.use_unitfonts == "1" and pfUI.font_square or pfUI.font_default
|
||||
local panelfont_size = C.panel.use_unitfonts == "1" and C.global.font_square_size or C.global.font_size
|
||||
local panelfont = C.panel.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local panelfont_size = C.panel.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
|
||||
local default_border = C.appearance.border.default
|
||||
if C.appearance.border.chat ~= "-1" then
|
||||
|
||||
@@ -13,7 +13,7 @@ pfUI:RegisterModule("cooldown", function ()
|
||||
cooldown.cd:SetFrameLevel(cooldown.cd:GetFrameLevel() + 1)
|
||||
|
||||
cooldown.cd.text = cooldown.cd:CreateFontString("pfCooldownFrameText", "OVERLAY")
|
||||
cooldown.cd.text:SetFont(pfUI.font_square, C.global.font_square_size, "OUTLINE")
|
||||
cooldown.cd.text:SetFont(pfUI.font_unit, C.global.font_unit_size, "OUTLINE")
|
||||
cooldown.cd.text:SetPoint("CENTER", cooldown.cd, "CENTER", 0, 1)
|
||||
|
||||
cooldown.cd:SetScript("OnUpdate", function()
|
||||
|
||||
+2
-2
@@ -762,8 +762,8 @@ pfUI:RegisterModule("gui", function ()
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Enable Region Compatible Font", C.global, "force_region", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Text Font", C.global, "font_default", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Text Font Size", C.global, "font_size")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Unit Frame Font", C.global, "font_square", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Unit Frame Size", C.global, "font_square_size")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Unit Frame Font", C.global, "font_unit", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Unit Frame Size", C.global, "font_unit_size")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Scrolling Combat Text Font", C.global, "font_combat", "dropdown", values)
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Enable Pixel Perfect (Native Resolution)", C.global, "pixelperfect", "checkbox")
|
||||
pfUI.gui:CreateConfig(pfUI.gui.global, "Enable Offscreen Frame Positions", C.global, "offscreen", "checkbox")
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
pfUI:RegisterModule("nameplates", function ()
|
||||
local font = C.nameplates.use_unitfonts == "1" and pfUI.font_square or pfUI.font_default
|
||||
local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_square_size or C.global.font_size
|
||||
local font = C.nameplates.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
|
||||
pfUI.nameplates = CreateFrame("Frame", nil, UIParent)
|
||||
pfUI.nameplates.mobs = {}
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
pfUI:RegisterModule("panel", function ()
|
||||
|
||||
local font = C.panel.use_unitfonts == "1" and pfUI.font_square or pfUI.font_default
|
||||
local font_size = C.panel.use_unitfonts == "1" and C.global.font_square_size or C.global.font_size
|
||||
local font = C.panel.use_unitfonts == "1" and pfUI.font_unit or pfUI.font_default
|
||||
local font_size = C.panel.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
|
||||
|
||||
local default_border = C.appearance.border.default
|
||||
if C.appearance.border.panels ~= "-1" then
|
||||
|
||||
Reference in New Issue
Block a user