fonts: use internal font variable

This commit is contained in:
shagu
2017-06-04 13:41:45 +02:00
parent c4d5c1902f
commit 05825a3a60
3 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -11,14 +11,14 @@ pfUI:RegisterModule("buff", function ()
-- weapon enchant stacks
TempEnchant1.stacks = TempEnchant1:CreateFontString(nil, "OVERLAY", "GameFontNormal")
TempEnchant1.stacks:SetFont(STANDARD_TEXT_FONT, 14, "OUTLINE")
TempEnchant1.stacks:SetFont(pfUI.font_default, 14, "OUTLINE")
TempEnchant1.stacks:SetTextColor(1,1,1,1)
TempEnchant1.stacks:ClearAllPoints()
TempEnchant1.stacks:SetAllPoints(TempEnchant1)
TempEnchant1.stacks:SetJustifyH("RIGHT")
TempEnchant1.stacks:SetJustifyV("BOTTOM")
TempEnchant2.stacks = TempEnchant2:CreateFontString(nil, "OVERLAY", "GameFontNormal")
TempEnchant2.stacks:SetFont(STANDARD_TEXT_FONT, 14, "OUTLINE")
TempEnchant2.stacks:SetFont(pfUI.font_default, 14, "OUTLINE")
TempEnchant2.stacks:SetTextColor(1,1,1,1)
TempEnchant2.stacks:ClearAllPoints()
TempEnchant2.stacks:SetAllPoints(TempEnchant2)
+5 -5
View File
@@ -75,9 +75,9 @@ pfUI:RegisterModule("nameplates", function ()
raidicon:SetPoint("CENTER", healthbar, "CENTER", 0, -5)
-- adjust font
name:SetFont(STANDARD_TEXT_FONT,12,"OUTLINE")
name:SetFont(pfUI.font_default,12,"OUTLINE")
name:SetPoint("BOTTOM", healthbar, "CENTER", 0, 7)
level:SetFont(STANDARD_TEXT_FONT,12, "OUTLINE")
level:SetFont(pfUI.font_default,12, "OUTLINE")
level:ClearAllPoints()
level:SetPoint("RIGHT", healthbar, "LEFT", -1, 0)
levelicon:ClearAllPoints()
@@ -143,7 +143,7 @@ pfUI:RegisterModule("nameplates", function ()
healthbar.castbar.text:SetNonSpaceWrap(false)
healthbar.castbar.text:SetFontObject(GameFontWhite)
healthbar.castbar.text:SetTextColor(1,1,1,.5)
healthbar.castbar.text:SetFont(STANDARD_TEXT_FONT, 10, "OUTLINE")
healthbar.castbar.text:SetFont(pfUI.font_default, 10, "OUTLINE")
end
if healthbar.castbar.spell == nil then
@@ -152,7 +152,7 @@ pfUI:RegisterModule("nameplates", function ()
healthbar.castbar.spell:SetNonSpaceWrap(false)
healthbar.castbar.spell:SetFontObject(GameFontWhite)
healthbar.castbar.spell:SetTextColor(1,1,1,1)
healthbar.castbar.spell:SetFont(STANDARD_TEXT_FONT, 10, "OUTLINE")
healthbar.castbar.spell:SetFont(pfUI.font_default, 10, "OUTLINE")
end
if healthbar.castbar.icon == nil then
@@ -181,7 +181,7 @@ pfUI:RegisterModule("nameplates", function ()
healthbar.hptext:SetNonSpaceWrap(false)
healthbar.hptext:SetFontObject(GameFontWhite)
healthbar.hptext:SetTextColor(1,1,1,1)
healthbar.hptext:SetFont(STANDARD_TEXT_FONT, 10)
healthbar.hptext:SetFont(pfUI.font_default, 10)
end
end
+1 -1
View File
@@ -115,7 +115,7 @@ pfUI:RegisterModule("thirdparty", function ()
_G[windowname .. "ScrollingMessageFrame"]:SetPoint("TOPLEFT", _G[windowname], "TOPLEFT", 10, -45)
_G[windowname .. "ScrollingMessageFrame"]:SetPoint("BOTTOMRIGHT", _G[windowname], "BOTTOMRIGHT", -32, 32)
_G[windowname .. "ScrollingMessageFrame"]:SetFont(STANDARD_TEXT_FONT, 12)
_G[windowname .. "ScrollingMessageFrame"]:SetFont(pfUI.font_default, 12)
CreateBackdrop(_G[windowname .. "MsgBox"])
_G[windowname .. "MsgBox"]:ClearAllPoints()