Thread Tools Display Modes
10-22-09, 11:29 PM   #1
Grim Notepad
A Murloc Raider
 
Grim Notepad's Avatar
Join Date: May 2007
Posts: 6
Breath Bar

So far i have had every bar integreated into the oUF (the cast bar and the craft bar)

but the breath bar still hangs out in blizzard form at the top of my screen under my tomtom waypoint

is there an oUF plugin that will take that breathbar and make it attached to the player unit frame?
  Reply With Quote
10-23-09, 01:52 AM   #2
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
stolen from Shestak :

Code:
	for _, bar in pairs({'MirrorTimer1','MirrorTimer2','MirrorTimer3',}) do   
		for i, region in pairs({_G[bar]:GetRegions()}) do
			if (region.GetTexture and region:GetTexture() == 'SolidTexture') then
				region:Hide()
			end
		end

		_G[bar..'Border']:Hide()

		_G[bar]:SetParent(UIParent)
		_G[bar]:SetPoint('TOP', UIParent, 'TOP', 0, -200)
		_G[bar]:SetScale(1)
		_G[bar]:SetHeight(16)
		_G[bar]:SetWidth(200)
		_G[bar]:SetBackdrop(backdrop)
		_G[bar]:SetBackdropColor(0,0,0)

		_G[bar..'Background'] = _G[bar]:CreateTexture(bar..'Background', 'BACKGROUND', _G[bar])
		_G[bar..'Background']:SetTexture(texture)
		_G[bar..'Background']:SetAllPoints(bar)
		_G[bar..'Background']:SetVertexColor(.35,.35,.35,.75)

		_G[bar..'Text']:SetFont(font, 8)
		_G[bar..'Text']:ClearAllPoints()
		_G[bar..'Text']:SetPoint('CENTER', MirrorTimer1StatusBar, 0, 1)

		_G[bar..'StatusBar']:SetAllPoints(_G[bar])
		_G[bar..'StatusBar']:SetStatusBarTexture(texture)
	end
That's not code just for oUF but he put it in his layout so.
  Reply With Quote
10-23-09, 06:07 AM   #3
Shestak
A Deviate Faerie Dragon
 
Shestak's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2008
Posts: 11
Originally Posted by Rostok View Post
stolen from Shestak :

Code:
	for _, bar in pairs({'MirrorTimer1','MirrorTimer2','MirrorTimer3',}) do   
		for i, region in pairs({_G[bar]:GetRegions()}) do
			if (region.GetTexture and region:GetTexture() == 'SolidTexture') then
				region:Hide()
			end
		end

		_G[bar..'Border']:Hide()

		_G[bar]:SetParent(UIParent)
		_G[bar]:SetPoint('TOP', UIParent, 'TOP', 0, -200)
		_G[bar]:SetScale(1)
		_G[bar]:SetHeight(16)
		_G[bar]:SetWidth(200)
		_G[bar]:SetBackdrop(backdrop)
		_G[bar]:SetBackdropColor(0,0,0)

		_G[bar..'Background'] = _G[bar]:CreateTexture(bar..'Background', 'BACKGROUND', _G[bar])
		_G[bar..'Background']:SetTexture(texture)
		_G[bar..'Background']:SetAllPoints(bar)
		_G[bar..'Background']:SetVertexColor(.35,.35,.35,.75)

		_G[bar..'Text']:SetFont(font, 8)
		_G[bar..'Text']:ClearAllPoints()
		_G[bar..'Text']:SetPoint('CENTER', MirrorTimer1StatusBar, 0, 1)

		_G[bar..'StatusBar']:SetAllPoints(_G[bar])
		_G[bar..'StatusBar']:SetStatusBarTexture(texture)
	end
That's not code just for oUF but he put it in his layout so.
From Neav
  Reply With Quote
10-23-09, 07:20 AM   #4
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
This has nothing to do with Unit Frames though.

Haste had an addon called oMirrorBars before, but I dont think its still out there any more.
  Reply With Quote
10-23-09, 07:32 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
http://www.wowinterface.com/download...irrorBars.html
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
10-23-09, 10:03 AM   #6
Rostok
A Flamescale Wyrmkin
Join Date: Jul 2008
Posts: 127
Originally Posted by Shestak View Post
From Neav
My bad :P
And P3lim i know that has nothing to do with a UF but with such small code why not put it in an oUF layout if no other addon for castbar is running ?
  Reply With Quote
10-23-09, 05:19 PM   #7
Grim Notepad
A Murloc Raider
 
Grim Notepad's Avatar
Join Date: May 2007
Posts: 6
oMirrorBar works pefectly, thanks
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Breath Bar


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