Thread Tools Display Modes
06-05-10, 08:06 AM   #1
radicall8
A Deviate Faerie Dragon
Join Date: Oct 2008
Posts: 13
oUF_P3lim layout modification

I was reading through P3lim's original thread and in his last post, he said that if there are any requests for modifying the layout, I should probably post here and pray for a reply that helps me, so here it goes.

I'm trying to add in oUF_TotemBar plugin support to the P3lim layout, and I've yet to be unsuccessful. I've read that there are people that manage to do it, but I haven't been able to get any response from them as to HOW they did it =/.

Second issue: Boss frames (:X). If anyone can help me here, it'd be greatly appreciated, as I've tried adding the appropriate code after the spawning code in P3lim's layout, and I got nothing where I should have gotten something.

Thanks in advance for any and all help,
Radicall8
  Reply With Quote
06-05-10, 08:20 AM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Did you add the right dependencies in the toc file ?
And the boss frames, you can handle them just like any other frame in oUF, look for a layout that have the boss code and study it
  Reply With Quote
06-05-10, 09:02 AM   #3
radicall8
A Deviate Faerie Dragon
Join Date: Oct 2008
Posts: 13
Yup, tried that, actually made sure I spelled it right 'cause I thought I did it wrong... still don't get anything - and for the boss frames, I've studied several different layouts - all of them doing the exact same thing as far as boss frames go - all to no avail when I try to do it myself.
  Reply With Quote
06-06-10, 09:51 AM   #4
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Code:
		if(IsAddOnLoaded('oUF_TotemBar') and class == 'SHAMAN') then
			self.TotemBar = {}
			for i = 1, 4 do
				self.TotemBar[i] = CreateFrame('StatusBar', self:GetName()..'_totembar', self)
				self.TotemBar[i]:SetHeight(4)
				self.TotemBar[i]:SetWidth(180/4 - 1)
				self.TotemBar[i]:SetStatusBarTexture(texture)
				self.TotemBar[i]:GetStatusBarTexture():SetHorizTile(false)
				self.TotemBar[i]:SetBackdrop(backdrop)
				self.TotemBar[i]:SetBackdropColor(0, 0, 0)
				self.TotemBar[i]:SetMinMaxValues(0, 1)

				self.TotemBar[i].bg = self.TotemBar[i]:CreateTexture(nil, 'BORDER')
				self.TotemBar[i].bg:SetAllPoints(self.TotemBar[i])
				self.TotemBar[i].bg:SetTexture(texture)
				self.TotemBar[i].bg.multiplier = 0.3
			end
			self.TotemBar[2]:SetPoint('TOPLEFT',self,'BOTTOMLEFT',0,-1)
			self.TotemBar[1]:SetPoint('TOPLEFT',self.TotemBar[2],'TOPRIGHT',1.25,0)
			self.TotemBar[3]:SetPoint('TOPLEFT',self.TotemBar[1],'TOPRIGHT',1.25,0)
			self.TotemBar[4]:SetPoint('TOPLEFT',self.TotemBar[3],'TOPRIGHT',1.25,0)
			
			self.TotemBar.Destroy = true
		end
Code:
## OptionalDeps: oUF_TotemBar
adapt it with your layout and that should work (at least it worked when i last played the game)
  Reply With Quote
06-06-10, 11:16 AM   #5
radicall8
A Deviate Faerie Dragon
Join Date: Oct 2008
Posts: 13
Code:
if (unit == 'player') then
if(select(2,UnitClass('player')) == 'SHAMAN') then
	  if(IsAddOnLoaded('oUF_TotemBar')) then
		self.TotemBar = {}
	  for i = 1, 4 do
		self.TotemBar[i] = CreateFrame("StatusBar", nil, self)
		self.TotemBar[i]:SetHeight(4)
		self.TotemBar[i]:SetWidth(200/4)
	  if (i == 1) then
		self.TotemBar[i]:SetPoint("TOPLEFT", self, "BOTTOMLEFT", 0, -1)
	  else
		self.TotemBar[i]:SetPoint("TOPLEFT", self.TotemBar[i-1], "TOPRIGHT", 1, 0)
	  end
		self.TotemBar[i]:SetStatusBarTexture(minimalist)
		self.TotemBar[i]:SetBackdrop(backdrop)
		self.TotemBar[i]:SetBackdropColor(0, 0, 0)
		self.TotemBar[i]:SetMinMaxValues(0, 1)
		self.TotemBar[i].destroy = true
						
		self.TotemBar[i].bg = self.TotemBar[i]:CreateTexture(nil, "BORDER")
		self.TotemBar[i].bg:SetAllPoints(self.TotemBar[i])
		self.TotemBar[i].bg:SetTexture(minimalist)
		self.TotemBar[i].bg.multiplier = 0.3
	  end
          end
end
end
That's what I had to do to get this to work... what you gave me was similar to what I already had, I just didn't realize his function for checking class until I actually went 'hey, what about the DK runes' - and then that's what it ended up as.

Last edited by radicall8 : 06-06-10 at 11:22 AM.
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF_P3lim layout modification


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