Thread Tools Display Modes
02-11-09, 05:26 AM   #701
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
The partytarget and partypet are parented to the party frame. Changing the parent to something else will solve your problem.
 
02-11-09, 06:01 AM   #702
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by haste View Post
The partytarget and partypet are parented to the party frame. Changing the parent to something else will solve your problem.
Well, yeah, i did but i've tried to anchor them to about every possible unit even
Code:
	elseif(self:GetAttribute('unitsuffix') == 'target') then
		self:SetParent(UIParent)
but it's either not working or erroring. Guess i must be using the wrong way to parent them somewhere else.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
 
02-11-09, 06:04 AM   #703
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
:SetPoint() is not the same as :SetParent() .
 
02-11-09, 06:13 AM   #704
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by haste View Post
:SetPoint() is not the same as :SetParent() .
Now huh, doing :SetPoint() will only change their location not their parenting, and if i do something like ('LEFT', UIParent, 'LEFT', 100, 100) for example in the layout, will it not conflict with the positioning in the /xml ?

Now you've lost me, not that it's complicated allright
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
 
02-11-09, 06:23 AM   #705
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
If you don't want a frame to inherit "settings" from it's parent, then parent it to something else. Using :SetPoint() only changes the position, nothing else.

In other words: You want to change the parent of the partytarget/partypet to something else.
 
02-11-09, 08:22 AM   #706
Caellian
A Frostmaul Preserver
 
Caellian's Avatar
Join Date: May 2006
Posts: 281
Originally Posted by haste View Post
If you don't want a frame to inherit "settings" from it's parent, then parent it to something else. Using :SetPoint() only changes the position, nothing else.

In other words: You want to change the parent of the partytarget/partypet to something else.
Well yes, changing the parent frame was what i tried and posted in the post above, with this
Code:
	elseif(self:GetAttribute('unitsuffix') == 'target') then
		self:SetParent(UIParent)
It's SetParent, not SetPoint, but that doesn't work.
__________________
if (sizeof(workload) > sizeof(brain_capacity)) { die('System Overload'); }
 
02-12-09, 02:31 PM   #707
coree
A Fallenroot Satyr
AddOn Author - Click to view addons
Join Date: Apr 2008
Posts: 28
Do the variables .visibleDebuffs etc work correctly ? Cause i can see all debuffs, although self.Auras.visibleDebuffs = 1
Code:
self.Auras = CreateFrame("Frame", nil, self)
self.Auras.size = 13
self.Auras:SetHeight(self.Auras.size)
self.Auras:SetWidth(self.Auras.size)
self.Auras:SetPoint("BOTTOM", self.Health, 0,0)
self.Auras.initialAnchor = "CENTER"
self.Auras.numBuffs = 0 
self.Auras.visibleDebuffs = 1
 
02-12-09, 04:05 PM   #708
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by coree View Post
Do the variables .visibleDebuffs etc work correctly ? Cause i can see all debuffs, although self.Auras.visibleDebuffs = 1
Code:
self.Auras = CreateFrame("Frame", nil, self)
self.Auras.size = 13
self.Auras:SetHeight(self.Auras.size)
self.Auras:SetWidth(self.Auras.size)
self.Auras:SetPoint("BOTTOM", self.Health, 0,0)
self.Auras.initialAnchor = "CENTER"
self.Auras.numBuffs = 0 
self.Auras.visibleDebuffs = 1
.visible* is set for the post-update functions. What you want to set is numDebuffs/numBuffs. This is documented in the aura.lua .
 
02-13-09, 06:11 PM   #709
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
I am currently using OUF Neav and well I though this might be the best place to ask. Im sure this is going to be the same no matter what layout i use. Can someone please explain or help me move the PVP icon for both the target , player and party frames please? they are just a tad bit off from the current texture i want to use. But fluid frames isnt letting me move the pvp icon so im assuming this must be done with lua. Here is a screenshot to explain where im trying to get the pvp icon

http://www.hdimage.org/images/qbme8y...1309175002.jpg

I just need the pvp icon to go right up in that circle frame it is close to. anyone help would be loverly!
__________________
 
02-13-09, 06:24 PM   #710
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Elloria View Post
I am currently using OUF Neav and well I though this might be the best place to ask. Im sure this is going to be the same no matter what layout i use. Can someone please explain or help me move the PVP icon for both the target , player and party frames please? they are just a tad bit off from the current texture i want to use. But fluid frames isnt letting me move the pvp icon so im assuming this must be done with lua. Here is a screenshot to explain where im trying to get the pvp icon

http://www.hdimage.org/images/qbme8y...1309175002.jpg

I just need the pvp icon to go right up in that circle frame it is close to. anyone help would be loverly!


In the layout I'm using it's calling it with self.PvP

Code:
   
    self.PvP:SetHeight(24)
    self.PvP:SetWidth(24)
    self.PvP:SetPoint('CENTER', self, 'TOPRIGHT', -1, -10)
If the one you're using is using the same method, this should point ya where you need to be. Hope this helps, I'm an ubernoob so don't hold it against me if I /fail.
 
02-13-09, 07:24 PM   #711
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
thank you so much you have def. pointed me in the right direction. I just need to figure out how to do this for my target, tot, focus, and party frames hehe
__________________
 
02-13-09, 08:42 PM   #712
st0nedpenguin
A Deviate Faerie Dragon
 
st0nedpenguin's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2005
Posts: 10
Apologies if this isn't the correct place for this, but could anyone hook me up with the code required to add oUF Debuff Highlight support for displaying the actual debuff icon over my frames?

I've been trying to work out exactly what I need from the info given in the readme but every time I try anything it just disables my entire frames.

I'm using oUF P3lim as my base if that's of any help.
 
02-13-09, 08:49 PM   #713
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Elloria View Post
thank you so much you have def. pointed me in the right direction. I just need to figure out how to do this for my target, tot, focus, and party frames hehe

Looks like you could use

if(unit=='player') then
--insert your code

elseif(unit=='target') then
--insert your code

etc... and so on

Just make sure 'target', 'player', 'pet', 'tot'... are all the correct calls for the code you're working with.
 
02-13-09, 09:46 PM   #714
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
Wow I really appreciate the help ill work on this tonight and tell you how it turns out. Youve been great help ty!

Edit: Well even if i edit the x,y coords the pvp icon doesnt move. Any idea why?
__________________

Last edited by Elloria : 02-13-09 at 09:56 PM.
 
02-13-09, 10:33 PM   #715
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Elloria View Post
Wow I really appreciate the help ill work on this tonight and tell you how it turns out. Youve been great help ty!

Edit: Well even if i edit the x,y coords the pvp icon doesnt move. Any idea why?

Try this (be sure to backup your current).

Code:
    
    self.PvP = self:CreateTexture(nil, 'OVERLAY') 
    self.PvP:SetHeight(24)
    self.PvP:SetWidth(24)
    self.PvP:SetPoint('CENTER', self, 'TOPRIGHT', -1, -10)
You likely will need to adjust size and of coarse use your own position. I won't pretend like I know this will work, it's only a guess . I glanced at the code for the layout you mentioned and I couldn't give a definitive answer why it doesn't work fr you. GL
 
02-13-09, 10:48 PM   #716
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
That is creating a pvp target even if im not pvp but we got closer that time , the coords are working with that one
__________________
 
02-13-09, 10:58 PM   #717
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Originally Posted by Elloria View Post
That is creating a pvp target even if im not pvp but we got closer that time , the coords are working with that one

Okay, good deal. It's a learning experience for me too. In the 1st line try your old code as follows (remove self at the end). I suspect that was what was limiting position, but not certain of it.

Old code
Code:
self.PvP = self.Health:CreateTexture(self:GetName().."PVPIcon", "OVERLAY", self)
Try this
Code:
self.PvP = self.Health:CreateTexture(self:GetName().."PVPIcon", "OVERLAY")
 
02-13-09, 11:30 PM   #718
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
Code:
    if(unit=='player') then
            self.PvP = self.Health:CreateTexture(self:GetName().."PVPIcon", "OVERLAY")
            self.PvP:SetHeight(44)
            self.PvP:SetWidth(44)
            self.PvP:SetPoint('CENTER', self, 'TOPLEFT', -13, -8)
    end
    
    if(unit=='target') then
            self.PvP = self.Health:CreateTexture(self:GetName().."PVPIcon", "OVERLAY")
            self.PvP:SetHeight(44)
            self.PvP:SetWidth(44)
            self.PvP:SetPoint('CENTER', self, 'TOPRIGHT', 26, -5)
    end




I could just hug and kiss you right now thank you so much!
__________________
 
02-13-09, 11:33 PM   #719
Yhor
A Pyroguard Emberseer
 
Yhor's Avatar
Join Date: May 2007
Posts: 1,077
Looks awesome! Now you know how to do leader icon and master looter icon as well.

/cracks whip
 
02-13-09, 11:44 PM   #720
Elloria
An Onyxian Warder
 
Elloria's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 358
well it seems i celebrated too soon. The pvp icon stays there after i unflag but after i dl /rl it dissapears.
__________________
 

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF - Layout discussion


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