I'm using oUF_Neav
With the new shard art from blizzard you can't have your warlock pet so close to the main unitframe. i was wondering how to make it so when i log on my warlock the pet frame will drop down 10-20 pixels. below is the code im trying to get to work but doen't seem to take.
Code:
local pet = self:Spawn('pet', 'oUF_Neav_Pet')
if myClass == 'Warlock' then
pet:SetPoint('TOPLEFT', oUF_Neav_Player, 'BOTTOMLEFT', unpack(oUF_Neav.units.pet.position1))
else
pet:SetPoint('TOPLEFT', oUF_Neav_Player, 'BOTTOMLEFT', unpack(oUF_Neav.units.pet.position))
end
pet:SetScale(oUF_Neav.units.pet.scale)
any help with this would be great.
Thanks
Coke
Edit: got it to work looks like this now
Code:
local myClass = select(2, UnitClass("player"))
local pet = self:Spawn('pet', 'oUF_Neav_Pet')
if myClass == 'WARLOCK' then
pet:SetPoint('TOPLEFT', oUF_Neav_Player, 'BOTTOMLEFT', unpack(oUF_Neav.units.pet.warlock))
else
pet:SetPoint('TOPLEFT', oUF_Neav_Player, 'BOTTOMLEFT', unpack(oUF_Neav.units.pet.position))
end
pet:SetScale(oUF_Neav.units.pet.scale)