View Single Post
05-10-09, 10:22 AM   #1020
neolith
A Fallenroot Satyr
 
neolith's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 22
Originally Posted by phrequency View Post
I have a quick question:
I'm using oUF_coree and I wanted to know how to change the location of the names of my pet and my targettarget frames- any help would be appreciated.

This is my first time working with LUA and I managed to position the frames how I wanted them, but I dont see the tag for pet or targettarget name in the code.
Code:
if(unit ~= "player") then
		self.Info = SetFontString(self.Health, fontn, 14, "THINOUTLINE")
		self.Info:SetPoint("LEFT", self.Health, 1, -23)
		if(unit == "targettarget" or unit == "pet") then		
			self.Info:SetPoint("RIGHT", self.Health.Text2
This currently sets a relative position for the pet and targettarget names, I think, but I want to make the position absolute and be able to change it around an anchor.
I'm not sure I fully understand your problem, but this
Code:
self.Info:SetPoint("LEFT", self.Health)
anchors self.Info to self.Health. Change it to whatever you want to stick it to.
__________________
- The biggest trick the devil ever pulled was convincing the world he didn't exist. -

Last edited by neolith : 05-10-09 at 10:30 AM.