core: use media mechanism for configurable paths

This commit is contained in:
shagu
2019-06-10 13:35:48 +02:00
parent d075751632
commit c939f8b322
7 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -512,7 +512,7 @@ pfUI:RegisterModule("actionbar", 20400, function ()
local function CreateActionButton(parent, bar, button)
-- load config
local size = C.bars["bar"..bar].icon_size
local font = C.bars.font
local font = pfUI.media[C.bars.font]
local font_offset = tonumber(C.bars.font_offset)
local macro_size = tonumber(C.bars.macro_size)
+1 -1
View File
@@ -7,7 +7,7 @@ pfUI:RegisterModule("castbar", 20400, function ()
default_border = C.appearance.border.unitframes
end
local cbtexture = C.appearance.castbar.texture
local cbtexture = pfUI.media[C.appearance.castbar.texture]
local function CreateCastbar(name, parent, unitstr, unitname)
local cb = CreateFrame("Frame", name, parent or UIParent)
+1 -1
View File
@@ -3,7 +3,7 @@ pfUI:RegisterModule("nameplates", 20400, function ()
local font_size = C.nameplates.use_unitfonts == "1" and C.global.font_unit_size or C.global.font_size
local inactive_alpha = tonumber(C.nameplates.notargalpha)
local glowr, glowg, glowb, glowa = GetStringColor(C.nameplates.glowcolor)
local hptexture = C.nameplates.healthtexture
local hptexture = pfUI.media[C.nameplates.healthtexture]
pfUI.nameplates = CreateFrame("Frame", nil, UIParent)
+1 -1
View File
@@ -22,7 +22,7 @@ pfUI:RegisterModule("screenshot", function ()
pfUI.screenshot.caption:SetWidth(400)
pfUI.screenshot.caption:SetHeight(200)
pfUI.screenshot.caption.text = pfUI.screenshot.caption:CreateFontString("Label", "OVERLAY")
pfUI.screenshot.caption.text:SetFont(C.screenshot.caption_font, C.screenshot.caption_size, "THICKOUTLINE")
pfUI.screenshot.caption.text:SetFont(pfUI.media[C.screenshot.caption_font], C.screenshot.caption_size, "THICKOUTLINE")
pfUI.screenshot.caption.text:SetAllPoints(pfUI.screenshot.caption)
pfUI.screenshot.caption.text:SetJustifyH("CENTER")
pfUI.screenshot.caption.text:SetJustifyV("TOP")
+1 -1
View File
@@ -741,7 +741,7 @@ pfUI:RegisterModule("thirdparty", function ()
-- set pfUI bar font
if TheoryCraft_Settings then
TheoryCraft_Settings["FontPath"] = C.bars.font
TheoryCraft_Settings["FontPath"] = pfUI.media[C.bars.font]
end
if not pfUI.bars then return end