Thread Tools Display Modes
04-24-11, 10:28 AM   #1
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
pet Frame

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)

Last edited by cokedrivers : 04-24-11 at 11:02 AM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » pet Frame


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off