Code:
elseif(self.mystyle == "target") then
core:setBackdrop(castbar, cfg.units.target.castbar.height + 4, 2, 2, 2)
castbar:SetBackdropColor(unpack(cfg.elements.castbar.backdrop.color))
-- castbar:SetStatusBarColor(unpack(cfg.units.target.castbar.color))
-- castbar:SetWidth(cfg.units.target.castbar.width - cfg.units.target.castbar.height + 6)
-- castbar:SetHeight(cfg.units.target.castbar.height)
castbar:SetWidth(126)
castbar:SetHeight(15)
-- castbar:SetPoint("CENTER", "UIParent", "CENTER", 0, 350)
castbar:SetPoint("RIGHT", "oUF_LumenTarget", "RIGHT", -67,9)
You really should look over all the code you're working with while trying to learn. In this block of code you can see the last line of it tells the castbar where to be positioned. If you're wanting the targets castbar directly in the center of the screen with all setpoint parameters...
Code:
castbar:SetPoint("CENTER", UIParent, "CENTER", 0, 0)