~sbaildon/sInterface

52bfbab451bebdb1420b1352a1bf62f28f5b59ba — Sean Baildon 2 years ago 1534368
progressbar: fmt
1 files changed, 6 insertions(+), 4 deletions(-)

M modules/progressbar/progressbar.lua
M modules/progressbar/progressbar.lua => modules/progressbar/progressbar.lua +6 -4
@@ 1,10 1,12 @@
local _, ns = ...
local E = ns.E

if not E:C('progressbars', 'enabled') then return end;

if not E:C('progressbars', 'enabled') then return end
;
local bars = {}

local Minimap = Minimap

local ProgressBars = CreateFrame("Frame", "sInterfaceProgressBars", Minimap)
ProgressBars:SetPoint("TOPLEFT", Minimap, "BOTTOMLEFT", 0, -10)
ProgressBars:SetPoint("TOPRIGHT", Minimap, "BOTTOMRIGHT", 0, -10)


@@ 49,12 51,12 @@ local function reposition()
		end
	end

	ProgressBars:SetHeight(totalHeight + (E:C('progressbars', 'spacing') * (enabledCount-1)))
	ProgressBars:SetHeight(totalHeight + (E:C('progressbars', 'spacing') * (enabledCount - 1)))
end

function ProgressBars:CreateBar(barName)
	if not barName then return end
	local barHolder = CreateFrame("Frame", "sInterfaceProgressBars_"..barName, ProgressBars)
	local barHolder = CreateFrame("Frame", "sInterfaceProgressBars_" .. barName, ProgressBars)
	barHolder:SetPoint("LEFT", ProgressBars, "LEFT")
	barHolder:SetPoint("RIGHT", ProgressBars, "RIGHT")
	E:ShadowedBorder(barHolder)