Download
(95Kb)
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:11,400
Favorites:45
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.
Post A Reply Comment Options
Unread 08-07-09, 03:09 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Originally posted by NeverD1e
Hi, could you reload the new screenshots, preferably at the time of caste, if it is difficult.
I am not quite sure what you meant, but I added a screenshot with the cast bars earlier this morning.
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 10:43 PM  
NeverD1e
A Murloc Raider

Forum posts: 5
File comments: 2
Uploads: 0
Hi, could you reload the new screenshots, preferably at the time of caste, if it is difficult.
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 04:13 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Re: Re: Icon error?

Originally posted by branana
Didn't help, all those icons are still there.
If you are using a version of WoW earlier then 3.2, you should use version 2.0 of oUF_Hypocrisy, found in the archived files.

If you are using the latest version of WoW, then you should use the latest version oUF_Hypocrisy, currently version 2.01.

-----------------------------------------

If you are still having issues, it would help me if you could confirm the version of WoW that you are running, and tell me what line 90 in layout.lua of oUF_Hypocrisy says.

There is also probably an error being thrown when you load WoW. If you are running a program that collects errors it would help if you could tell me what the error is.

If not, I highly recommend getting BugSack. It will prevent the ugly error messages from appearing in the middle of your screen, and make them a bit more informative for developers. Although other then patch days you should not be experiencing any errors.
Last edited by Hypocrisy : 08-06-09 at 09:53 PM.
Report comment to moderator  
Reply With Quote
Unread 08-06-09, 12:00 PM  
branana
A Kobold Labourer
 
branana's Avatar
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 29
Uploads: 1
Re: Re: Icon error?

Originally posted by Hypocrisy
Update to the latest version, 2.01. That was a problem that resulted from a change that blizzard made in the patch yesterday, the latest version fixes it.
Didn't help, all those icons are still there.
Report comment to moderator  
Reply With Quote
Unread 08-05-09, 09:11 PM  
closetoyou
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Re: Re: Icon error?

Originally posted by Hypocrisy
Update to the latest version, 2.01. That was a problem that resulted from a change that blizzard made in the patch yesterday, the latest version fixes it.
Thanks, Hypocrisy.

I'm Korean WoW user.

Today was 3.2.0 Patch, because I waiting the server open.

I'll try to test 2.01 version when server opens.

Thanks for your answers.
Last edited by closetoyou : 08-05-09 at 09:13 PM.
Report comment to moderator  
Reply With Quote
Unread 08-05-09, 05:18 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Icon error?

Originally posted by closetoyou
All of Leader icon appeared when I logon the character.

How can I fix it?


Img link : http://img200.imageshack.us/img200/9132/71141485.jpg
Update to the latest version, 2.01. That was a problem that resulted from a change that blizzard made in the patch yesterday, the latest version fixes it.
Last edited by Hypocrisy : 08-05-09 at 06:02 PM.
Report comment to moderator  
Reply With Quote
Unread 08-05-09, 02:13 PM  
closetoyou
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
Icon error?

All of Leader icon appeared when I logon the character.

How can I fix it?


Img link : http://img200.imageshack.us/img200/9132/71141485.jpg
Report comment to moderator  
Reply With Quote
Unread 08-04-09, 06:17 AM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Originally posted by nj55top
Thanks a lot. I have a new idea now.
When a unit casts a spell, the icon of the spell will instead of the 2D portrait of the unit. If I change the scale and position of castbar.icon, will I achieve it?
That should work fine. If you change to the code for the 2D portrait listed below it will make your portrait 2D, then you could draw the spell icon on top of the portrait when the unit is casting. If you noticed, the castbar.icon code is commented out in the layout.lua file, along with a few other lines commented out that offset the castbar to make room on the left for the icon. If you simply uncomment the castbar.icon code, but not the code to resize the castbar, then reposition the icon over the portrait, with the same size as the portrait, that should do the trick. The portrait itself is not perfectly square, so if you want to be sure that you cover everything behind the icon, you can give it a background.

If you need any help accomplishing this, let me know.
Last edited by Hypocrisy : 08-04-09 at 06:18 AM.
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 11:57 PM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Thanks a lot. I have a new idea now.
When a unit casts a spell, the icon of the spell will instead of the 2D portrait of the unit. If I change the scale and position of castbar.icon, will I achieve it?
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 01:52 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Originally posted by nj55top
I have a little question. That is how to get a "2D" portrait?
To make the player portrait 2D, go to this block of code:

Code:
		local portrait = CreateFrame("PlayerModel", nil, self)
		portrait:SetScript("OnShow", function(self) self:SetCamera(0) end)
		portrait:SetWidth(41)
		portrait:SetHeight(42)
		portrait:SetPoint("BOTTOMRIGHT", self.Power, "BOTTOMLEFT", -2, 0)
		portrait.type = "3D"
		self.Portrait = portrait
and replace it with this:

Code:
		self.Portrait = self:CreateTexture(nil, "BORDER")
		self.Portrait:SetWidth(41)
		self.Portrait:SetHeight(42)
		self.Portrait:SetPoint("BOTTOMRIGHT", self.Power, "BOTTOMLEFT", -2, 0)

---------------------------------------------------------
---------------------------------------------------------


Next replace:

Code:
		self.Combat = self.Portrait:CreateTexture(nil, 'OVERLAY')
with

Code:
		self.Combat = self:CreateTexture(nil, 'OVERLAY')

---------------------------------------------------------
---------------------------------------------------------


and

Code:
		self.Resting = self.Portrait:CreateTexture(nil, 'OVERLAY')
with

Code:
		self.Resting = self:CreateTexture(nil, 'OVERLAY')

---------------------------------------------------------
---------------------------------------------------------


Basically you are removing ".Portrait" in both cases. That should do the trick for you, just change the code in the same way everywhere there is a portrait.

In case you are wondering why the new code is so much shorter...

When I initially created my frames, portraits were not yet fully supported in oUF. I am ashamed to admit it, but I don't really follow the change log. Anyway, it seems that I am using a few deprecated commands that are no longer needed. The portrait.type = "3D" is eye candy. I have fixed the code to match the current version of oUF, but the impact of the change is small enough that I will wait to commit it until I have something larger.
Last edited by Hypocrisy : 08-03-09 at 02:34 PM.
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 07:18 AM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Originally posted by Balkeep
go to line 692 in layout.lua and find:
Code:
portrait.type = "3D"
Change it to 2D =P
I have changed it, but it didn't work.
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 03:51 AM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 58
Uploads: 2
go to line 692 in layout.lua and find:
Code:
portrait.type = "3D"
Change it to 2D =P
Report comment to moderator  
Reply With Quote
Unread 08-03-09, 12:17 AM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
I have a little question. That is how to get a "2D" portrait?
Last edited by nj55top : 08-03-09 at 12:40 AM.
Report comment to moderator  
Reply With Quote
Unread 07-31-09, 03:03 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Originally posted by Aluria
Hey ther Very nice1. But ure raidframes aren't really usable for a healer.. So i thouhgt i'd check the lua abd remove group and raid-frame but i'm not skilled enough Can u tell me where i can Hide it? Would be awsome

Rest of ure Layout rocks but the party/raid aren't fitting, sadly..
There actually isn't too much skill required to hide frames. It gets a bit messier if you want to change their appearance. I address this way back in the early part of the comments, here is an extract of the relevant part of the post to hide the raid frames.

To hide the raid frames go to the section at the bottom of the code titled:

-- ------------------------------------------------------------------------
-- 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
You also have to comment out the raid toggle code. In the last block of code in layout.lua, comment out the following 2 lines.

Code:
			for i,v in ipairs(raid) do v:Show() end
Code:
			for i,v in ipairs(raid) do v:Hide() end
Report comment to moderator  
Reply With Quote
Unread 07-31-09, 02:30 PM  
Aluria
A Deviate Faerie Dragon

Forum posts: 13
File comments: 61
Uploads: 1
Hey ther Very nice1. But ure raidframes aren't really usable for a healer.. So i thouhgt i'd check the lua abd remove group and raid-frame but i'm not skilled enough Can u tell me where i can Hide it? Would be awsome

Rest of ure Layout rocks but the party/raid aren't fitting, sadly..
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: