mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-06 05:30:00 +00:00
api: use C for config
This commit is contained in:
+4
-4
@@ -4,7 +4,7 @@ pfUI:RegisterModule("roll", function ()
|
||||
|
||||
function pfUI.roll:CreateLootRoll(id)
|
||||
local size = 24
|
||||
local border = tonumber(pfUI_config.appearance.border.default)
|
||||
local border = tonumber(C.appearance.border.default)
|
||||
local esize = size - border*2
|
||||
local f = CreateFrame("Frame", "pfLootRollFrame" .. id, UIParent)
|
||||
pfUI.api:CreateBackdrop(f, nil, nil, .8)
|
||||
@@ -101,7 +101,7 @@ pfUI:RegisterModule("roll", function ()
|
||||
f.boe.text = f.boe:CreateFontString("BOE")
|
||||
f.boe.text:SetAllPoints(f.boe)
|
||||
f.boe.text:SetJustifyH("LEFT")
|
||||
f.boe.text:SetFont(pfUI.font_default, pfUI_config.global.font_size, "OUTLINE")
|
||||
f.boe.text:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
|
||||
|
||||
f.name = CreateFrame("Frame", "pfLootRollFrame" .. id .. "Name", f)
|
||||
f.name:SetPoint("LEFT", f.icon, "RIGHT", border*11+esize*4, 0)
|
||||
@@ -110,7 +110,7 @@ pfUI:RegisterModule("roll", function ()
|
||||
f.name.text = f.name:CreateFontString("NAME")
|
||||
f.name.text:SetAllPoints(f.name)
|
||||
f.name.text:SetJustifyH("LEFT")
|
||||
f.name.text:SetFont(pfUI.font_default, pfUI_config.global.font_size, "OUTLINE")
|
||||
f.name.text:SetFont(pfUI.font_default, C.global.font_size, "OUTLINE")
|
||||
|
||||
f.time = CreateFrame("Frame", "pfLootRollFrame" .. id .. "Time", f)
|
||||
f.time:SetPoint("TOPLEFT", f, "TOPLEFT", 0, 0)
|
||||
@@ -120,7 +120,7 @@ pfUI:RegisterModule("roll", function ()
|
||||
f.time.bar:SetAllPoints(f.time)
|
||||
f.time.bar:SetStatusBarTexture("Interface\\AddOns\\pfUI\\img\\bar")
|
||||
f.time.bar:SetMinMaxValues(0, 100)
|
||||
local r, g, b, a = pfUI.api.strsplit(",", pfUI_config.appearance.border.color)
|
||||
local r, g, b, a = pfUI.api.strsplit(",", C.appearance.border.color)
|
||||
f.time.bar:SetStatusBarColor(r, g, b)
|
||||
f.time.bar:SetValue(20)
|
||||
f.time.bar:SetScript("OnUpdate", function()
|
||||
|
||||
Reference in New Issue
Block a user