Download
(95 Kb)
Download
Updated: 03-26-10 08:48 AM
Addon for:
oUF.
Pictures
File Info
Updated:03-26-10 08:48 AM
Created:01-03-09 12:53 PM
Downloads:9,677
Favorites:47
MD5:
oUF Hypocrisy  Popular! (More than 5000 hits)
Version: 2.03
by: Hypocrisy [More]
My oUF layout. Requires oUF to work.
The raid frames in the middle of the raid shot are Grid, the oUF frames are the ones on the right.

Frames can be scaled. If you open the file layout.lua, there is a variable near the top called scale. It is currently set to 1, change it to 1.2 to make the frames 20% larger, etc. You may want to change the position of the frames a bit after you've scaled them, as positioning gets scaled as well.

All of the functions that spawn and position the frames are at the end of layout.lua, in the section titled "spawning the frames". If you want to hide or reposition your frames, the code you need to change can be found there.

Includes
  • Player
  • Pet
  • Pet Target
  • Target
  • Target of Target
  • Focus
  • Focus Target
  • Party
  • Party Pets
  • Party Targets
  • Raid

Supports
r2.03
----------------------------------------------------------------------------
- Re-fixed texture glitch with WoW 3.3.3

r2.02
----------------------------------------------------------------------------
- Added support for oUF_MoveableFrames

r2.01
----------------------------------------------------------------------------
- Added a Master Looter icon
- Added support for oUF_TotemBar
- Added support for oUF_Swing
- Removed support for oUF_AutoShot (functionality now in oUF_Swing)
- Simplified some code, cleaned up old code, fixed code for 3.2

r2.0
----------------------------------------------------------------------------
- Druid Mana, Auto Shot, and Rune Bar now scale properly
- Officially supports WoW 3.1

r1.36
----------------------------------------------------------------------------
- oUF_RuneBar support cleaned up a bit

r1.35
----------------------------------------------------------------------------
- Preliminary oUF_RuneBar support, cleaner version coming soon

r1.34
----------------------------------------------------------------------------
- Cleaned up AutoShot code

r1.33
----------------------------------------------------------------------------
- Added oUF_AutoShot support

r1.32
----------------------------------------------------------------------------
- Cleaned up druid code a tad

r1.31
----------------------------------------------------------------------------
- Added druid mana bar

r1.3
----------------------------------------------------------------------------
- Added a scale variable to layout.lua to allow scaling of the frames
- Added some code to allow the player class to be displayed
- Fixed a few 0.5 pixel issues noticed when using the scale feature

r1.231
----------------------------------------------------------------------------
- Fixed an error sometimes thrown by the color gradient

r1.23
----------------------------------------------------------------------------
- Added my color settings for oUF

r1.22
----------------------------------------------------------------------------
- Changed frame strata, so unit frames and castbars will now
properly appear behind everything else

time to start doing this properly
----------------------------------------------------------------------------
1/9 - Added ready check to party, fixed vehicles
1/9 - Added support for oUF Debuff Highlight, oUF Smooth Update
1/9 - Added fading to party pets/targets
1/9 - Moved all textures/fonts to one folder called media
1/8 - Added ready check support and leader icon for raid
1/8 - Moved debuffs and raid icons, and took debuffs off of pettarget
1/8 - No more layout(scale).lua, unless people really need it
1/6 - Added debuffs to pettarget, targettarget, and focustarget
1/6 - Improved layout(scale).lua
1/4 - Made all font sizes dependent on the fontsize variable at the start.
Archived Files (6)
File Name
Version
Size
Author
Date
2.02
96kB
Hypocrisy
09-05-09 10:00 AM
2.0
96kB
Hypocrisy
07-30-09 10:22 PM
1.36
98kB
Hypocrisy
03-15-09 09:14 AM
1.3
95kB
Hypocrisy
01-14-09 10:10 AM
1.231
95kB
Hypocrisy
01-13-09 08:52 AM
1.10
102kB
Hypocrisy
01-06-09 12:42 PM


Post A Reply Comment Options
Unread 03-01-09, 07:45 PM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Hey Hypocrisy, I did what you down a couple posts below concerning removing the raid frames but it didn't remove them. They're still there, all that did was make it so it would show my party frames even if there were > 5 people in the raid.

Any chance you could tell me how to edit the lua so the raid frames don't show at all? I've already deleted these 2, but that's all I've done so far.

Code:
for i,v in ipairs(raid) do v:Show() end
Code:
for i,v in ipairs(raid) do v:Hide() end
Stormbornz is offline Report comment to moderator  
Reply With Quote
Unread 02-27-09, 01:23 PM  
ironwulf
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
Thanks for the help, it's working perfectly now
ironwulf is offline Report comment to moderator  
Reply With Quote
Unread 02-25-09, 08:09 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by ironwulf
Hi,

Loving the looks of these frames. I didn't want to use the raid frames though, so I commented out the code you referred to back on page 3. However, after commenting that out I get following error:

[2009/02/25 09:35:36-9004-x1]: oUF_Hypocrisy\layout.lua:896: bad argument #1 to 'ipairs' (table expected, got nil)
oUF_Hypocrisy\layout.lua:896: in function <Interface\AddOns\oUF_Hypocrisy\layout.lua:884>

Party frames will not hide once joined to a raid from what I tested (invited a guildie, saw party frame formed, then converted to a raid and party frames remained)
My apologies on that. The reason you are getting that error is because of the party/raid toggle code. It is still trying to show and hide the raid even though it doesn't exist. You need to go to the following block of code at the end of the file:

Code:
local partyToggle = CreateFrame('Frame')
partyToggle:RegisterEvent('PLAYER_LOGIN')
partyToggle:RegisterEvent('RAID_ROSTER_UPDATE')
partyToggle:RegisterEvent('PARTY_LEADER_CHANGED')
partyToggle:RegisterEvent('PARTY_MEMBERS_CHANGED')
partyToggle:SetScript('OnEvent', function(self)
	if(InCombatLockdown()) then
		self:RegisterEvent('PLAYER_REGEN_ENABLED')
	else
		self:UnregisterEvent('PLAYER_REGEN_ENABLED')
		if(GetNumRaidMembers() > 5) then
			party:Hide()
			for i,v in ipairs(raid) do v:Show() end
			for i,v in ipairs(partypet) do v:Disable()	end
			for i,v in ipairs(partytarget) do v:Disable()	end
		else
			party:Show()
			for i,v in ipairs(raid) do v:Hide() end
			for i,v in ipairs(partypet) do v:Enable()	end
			for i,v in ipairs(partytarget) do v:Enable() end
		end
	end
end)
In here comment out the two lines:

Code:
			for i,v in ipairs(raid) do v:Show() end
and
Code:
			for i,v in ipairs(raid) do v:Hide() end
The reason the party frames aren't hiding in the raid is found in this same block of code.

Code:
		if(GetNumRaidMembers() > 5) then
tells the frames to only hide if there are more then 5 people in the raid.

Edit: For people looking to remove the raid frames. I left those two lines above out of a previous post, here is the other code you need to hide.

Go to

-- ------------------------------------------------------------------------
-- spawning the frames
-- ------------------------------------------------------------------------

and delete or comment out the following block of code:

Code:
local raid = {}
for i = 1, NUM_RAID_GROUPS do
	local raidgroup = oUF:Spawn("header", "oUF_Raid" .. i)
	raidgroup:SetManyAttributes("groupFilter", tostring(i), "showRaid", true, "yOffset", -10)
	table.insert(raid, raidgroup)
	if (i == 1 or i == 6) then
		if i == 1 then
			raidgroup:SetPoint("TOPRIGHT", UIParent, -10, -200) 
		else
			raidgroup:SetPoint("TOPRIGHT", UIParent, -120, -200) 
		end
	else
		raidgroup:SetPoint("TOPRIGHT", raid[i-1], "BOTTOMRIGHT", 0, -20)	
	end
	raidgroup:Show()
end
Last edited by Hypocrisy : 03-02-09 at 08:45 AM.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-25-09, 11:40 AM  
ironwulf
A Kobold Labourer

Forum posts: 0
File comments: 24
Uploads: 0
Hi,

Loving the looks of these frames. I didn't want to use the raid frames though, so I commented out the code you referred to back on page 3. However, after commenting that out I get following error:

[2009/02/25 09:35:36-9004-x1]: oUF_Hypocrisy\layout.lua:896: bad argument #1 to 'ipairs' (table expected, got nil)
oUF_Hypocrisy\layout.lua:896: in function <Interface\AddOns\oUF_Hypocrisy\layout.lua:884>

Party frames will not hide once joined to a raid from what I tested (invited a guildie, saw party frame formed, then converted to a raid and party frames remained)
ironwulf is offline Report comment to moderator  
Reply With Quote
Unread 02-17-09, 01:00 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by vpr
Well Healcomm works without any config and someone else added support for Experience - so it's all good

I do have a question - what does the "H" next to the level mean? At first I thought it was race (H = Human) but it always says H for anyone, so I'm confused.
Interesting to hear about Healcomm. Since I stopped playing I've resolved to not add any more code, but I can't really test to see what already works either.

As for the "H", it does stand for human, and it should be changing, it did for me. It's only localized for the English version of WoW though. This is what the code looks like:

Code:
		if type=="Humanoid" then
			self.Type:SetText("H")
		elseif type=="Beast" then
			self.Type:SetText("B")
		elseif type=="Mechanical" then
			self.Type:SetText("M")
		elseif type=="Elemental" then
			self.Type:SetText("E")
		elseif type=="Undead" then
			self.Type:SetText("U")
		elseif type=="Demon" then
			self.Type:SetText("D")
		elseif type=="Dragonkin" then
			self.Type:SetText("Dr")
		elseif type=="Giant" then
			self.Type:SetText("G")
		elseif type=="Not specified" then
			self.Type:SetText("NA")
		else
			self.Type:SetText(type)
		end
It would be possible to get it working for all localizations if somebody felt like adding libBabble support, but the easiest thing would just be to change the names if you need to. If the creature type doesn't match any of the above it defaults to showing the full name for the type.

Edit: I think I realized what you meant. You actually meant human. It doesn't stand for human, it stands for humanoid. So players will always show up as humanoids, except in a few special cases, such as a tree showing as elemental, or a bear showing as a beast. For me the main purpose of that indicator was so I'd know what kind of CC to use, I use the bar color to determine class.
Last edited by Hypocrisy : 02-17-09 at 01:11 PM.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-16-09, 03:08 PM  
vpr
A Theradrim Guardian

Forum posts: 65
File comments: 273
Uploads: 0
Well Healcomm works without any config and someone else added support for Experience - so it's all good

I do have a question - what does the "H" next to the level mean? At first I thought it was race (H = Human) but it always says H for anyone, so I'm confused.
vpr is offline Report comment to moderator  
Reply With Quote
Unread 02-13-09, 12:52 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by Stormbornz
I need to delete that entire code that you posted there?
Delete seems a bit harsh...but at least comment it out, yeah.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-13-09, 12:33 PM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
I need to delete that entire code that you posted there?
Last edited by Stormbornz : 02-13-09 at 12:34 PM.
Stormbornz is offline Report comment to moderator  
Reply With Quote
Unread 02-13-09, 08:57 AM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by Stormbornz
Actually I have 1 more question, is there any way to enable party frames during a raid? (with more than 1 group)
To enable party frames during a raid, comment out the toggle code at the end of layout.lua.

Code:
local partyToggle = CreateFrame('Frame')
partyToggle:RegisterEvent('PLAYER_LOGIN')
partyToggle:RegisterEvent('RAID_ROSTER_UPDATE')
partyToggle:RegisterEvent('PARTY_LEADER_CHANGED')
partyToggle:RegisterEvent('PARTY_MEMBERS_CHANGED')
partyToggle:SetScript('OnEvent', function(self)
	if(InCombatLockdown()) then
		self:RegisterEvent('PLAYER_REGEN_ENABLED')
	else
		self:UnregisterEvent('PLAYER_REGEN_ENABLED')
		if(GetNumRaidMembers() > 5) then
			party:Hide()
			for i,v in ipairs(raid) do v:Show() end
			for i,v in ipairs(partypet) do v:Disable()	end
			for i,v in ipairs(partytarget) do v:Disable()	end
		else
			party:Show()
			for i,v in ipairs(raid) do v:Hide() end
			for i,v in ipairs(partypet) do v:Enable()	end
			for i,v in ipairs(partytarget) do v:Enable() end
		end
	end
end)
As for more then one group...it would technically be possible, but you don't have all of the code you need in my frames. You'd have to leave the party toggle code in there, and for a start you could change all the raid frame appearance code to match that of the party, but I don't currently have raid targets or pets implemented, and I am afraid that I am not prepared to add them now.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 06:06 PM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Actually I have 1 more question, is there any way to enable party frames during a raid? (with more than 1 group)
Stormbornz is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 03:06 PM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Thanks! Now these unit frames are exactly what I need.

Nice work and thanks for the help!
Stormbornz is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 02:52 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by Stormbornz
Thanks, the debuff size thing worked perfectly. I still have another problem though, if it's not too much to ask. Still need help with the self cast only buffs on player frame.

Also, the filter is not working. I am still seeing other buffs that I can't cast on myself. I added the
Code:
self.Buffs.filter = true
to the last line of,

Code:
elseif unit=="player" then
		self.Buffs.size = 18.5
		self.Buffs:SetHeight(self.Buffs.size)
		self.Buffs:SetWidth(self.Buffs.size * 10)
		self.Buffs.num = 36
		self.Buffs.spacing = 2
		self.Buffs.filter = true
It looks exactly like that.
Ok, my apologies, as I said, the default filter is "HELPFUL", which would include other players buffs as well. The filters that can be applied are "HELPFUL", "HARMFUL", "PLAYER", "RAID", "CANCELABLE", "NOT_CANCELABLE", I believe that "HELPFUL" and "PLAYER" should do the trick. Try changing:

Code:
self.Buffs.filter = true
to

Code:
self.Buffs.filter = "HELPFUL|PLAYER"
My WoW lua is already starting to get rusty
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 01:54 PM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Thanks, the debuff size thing worked perfectly. I still have another problem though, if it's not too much to ask. Still need help with the self cast only buffs on player frame.

Also, the filter is not working. I am still seeing other buffs that I can't cast on myself. I added the
Code:
self.Buffs.filter = true
to the last line of,

Code:
elseif unit=="player" then
		self.Buffs.size = 18.5
		self.Buffs:SetHeight(self.Buffs.size)
		self.Buffs:SetWidth(self.Buffs.size * 10)
		self.Buffs.num = 36
		self.Buffs.spacing = 2
		self.Buffs.filter = true
It looks exactly like that.
Last edited by Stormbornz : 02-12-09 at 01:58 PM.
Stormbornz is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 11:51 AM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
Originally posted by Stormbornz
Is it possible to change the number of max debuffs on the target? And is it possible to show the player frame's buffs? (and to filter buffs that only the player can cast on himself). Other than these 2 issues I have with it, these UF are amazing and exactly what I want.

Thanks.
It is, you have to go to the section titled "buffs/debuffs". The first section of code is for the buffs, the second is for the debuffs. In the buffs section notice there is no if statement for the player. The easiest way to take care of this will be to copy the code for the target, which appears as follows:

Code:
	if unit=="target" then
		self.Buffs.size = 18.5
		self.Buffs:SetHeight(self.Buffs.size)
		self.Buffs:SetWidth(self.Buffs.size * 10)
		self.Buffs.num = 36
		self.Buffs.spacing = 2
Paste the copy immediately below this code, and change "if" to "elseif". You can then pick either the original or the copy you've just pasted and change unit=="target" to unit=="player". Now you have buffs on the player. As for filtering the buffs, I actually quit WoW a little back as I mentioned in an earlier posting, so I can't test it now, but I believe that you just need to add

Code:
		self.Buffs.filter = true
after the other statements for the player if statement. Tell me if that doesn't work for you.

To change the number of debuffs on the target, you need to find this piece of code in the debuffs section:

Code:
	elseif unit=="target" or unit=="focus" then
		self.Debuffs = CreateFrame("Frame", nil, self)
		self.Debuffs.size = 29
		self.Debuffs:SetHeight(self.Debuffs.size)
		self.Debuffs:SetWidth(self.Debuffs.size * 8)
		self.Debuffs:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 3)
		self.Debuffs.initialAnchor = "BOTTOMLEFT"
		self.Debuffs["growth-y"] = "TOP"
		self.Debuffs.num = 6
		self.Debuffs.spacing = 2
Simply change

Code:
		self.Debuffs.num = 6
to whatever you want. Since I limited the number of debuffs I never bothered to size the width correctly though...you may have to change

Code:
		self.Debuffs:SetWidth(self.Debuffs.size * 8)
in order to make sure that the debuffs don't overflow the target frame.

Amendment: The filter above will default to HELPFUL, if that doesn't do the trick for you it's possible to change the filter. I can dig up more if you need it. Also...the debuff thing above will change the number of debuffs on both the target and focus, incase you missed that in the code above. You can split the if statement if you only want to change the target.
Last edited by Hypocrisy : 02-12-09 at 12:08 PM.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 02-12-09, 03:11 AM  
Stormbornz
A Kobold Labourer

Forum posts: 0
File comments: 12
Uploads: 0
Is it possible to change the number of max debuffs on the target? And is it possible to show the player frame's buffs? (and to filter buffs that only the player can cast on himself). Other than these 2 issues I have with it, these UF are amazing and exactly what I want.

Thanks.
Stormbornz is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: