View Single Post
04-21-18, 08:59 AM   #3
Tim
A Rage Talon Dragon Guard
 
Tim's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 309
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)
__________________
AddOns: Tim @ WoWInterface
Battle Tag: Mysterio#11164
Current PC Setup: PCPartPicker List
  Reply With Quote