View Single Post
07-22-10, 07:08 AM   #58
OmeCorn
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: May 2010
Posts: 15
I managed to make my Raid Pets spawn, but there are a few problems with them: When they spawn they spawn like they're "out of range" and I don't know how to edit the size of them, since they're parented to my raidframe they have the same size.

I've tried it with the following code from oUF_Noob, but it gave me a .lua error for "self".

Code:
		if(self:GetAttribute('unitsuffix') == 'pet') then --it's a pet  (need to change these, power bars not showing?)
			self:SetWidth(40)
			self:SetHeight(20)
			self.Health:SetWidth(40)
			self.Health:SetHeight(15)
			self.Health.value:Hide()
			self.Auras:Hide()
			self.Debuffs:Hide()
			self.Health.colorTapping = false
			self.Health.colorClass = false
			self.Health.colorReaction = true
			self.Health.colorDisconnected = false
			self.PostUpdateHealth = updateHealth
			self.PostUpdatePower = updatePower -- let the colors be
			self.Power:SetPoint("TOPLEFT", self.Health, "BOTTOMLEFT", 0, 0)
			self.Power:SetWidth(40)
			self.Power:SetHeight(5)
			self.Power:SetAlpha(0.8)
			self.Power.value:Hide()
			self.Name:Hide()
			self.Level:Hide()
			self.ignoreBanzai = false
			self.ignoreDruidHots = false
Is there another way to resize the raidpet frames and show them like they're in my range?
  Reply With Quote