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,673
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 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.
branana is offline Report comment to moderator  
Reply With Quote
Unread 08-05-09, 09:11 PM  
closetoyou
A Kobold Labourer

Forum posts: 0
File comments: 7
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.
closetoyou is offline 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: 2
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.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 08-05-09, 02:13 PM  
closetoyou
A Kobold Labourer

Forum posts: 0
File comments: 7
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
closetoyou is offline 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: 2
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.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 08-03-09, 11:57 PM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 6
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?
nj55top is offline 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: 2
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.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 08-03-09, 07:18 AM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 6
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.
nj55top is offline 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: 59
Uploads: 3
go to line 692 in layout.lua and find:
Code:
portrait.type = "3D"
Change it to 2D =P
Balkeep is offline Report comment to moderator  
Reply With Quote
Unread 08-03-09, 12:17 AM  
nj55top
A Kobold Labourer

Forum posts: 0
File comments: 6
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.
nj55top is offline 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: 2
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
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 07-31-09, 02:30 PM  
Aluria
A Deviate Faerie Dragon

Forum posts: 13
File comments: 65
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..
Aluria is offline Report comment to moderator  
Reply With Quote
Unread 07-31-09, 06:41 AM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 59
Uploads: 3
yay great news =P
Balkeep is offline Report comment to moderator  
Reply With Quote
Unread 07-30-09, 10:24 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 2
back

So, I am back, after my extended hiatus.

Part of what drove me back was the fact that I have known there was something wrong with the scaling ever since adding oUF_RuneBar support with Derkyles help. He wasn't seeing what he should have been seeing, and it's been kind of nagging at me ever since. Too obsessive for my own good, and I couldn't properly fix the problem when I couldn't see what was appearing on the screen.

Seriously, tell me when things don't look right. I like things neat, if something doesn't line up perfectly it's broken. I only test with my own video settings.

Anyway, with that out of the way, I fixed the scaling issue, made a few minor tweaks, and released version 2.0, with my official nothing should be broken mark.
Hypocrisy is offline Report comment to moderator  
Reply With Quote
Unread 05-10-09, 09:11 AM  
Balkeep
A Cyclonian
 
Balkeep's Avatar
AddOn Author - Click to view AddOns

Forum posts: 43
File comments: 59
Uploads: 3
It works for me quite okay =P
Though i would really like if u could come back to the development, really liked this one =)
Balkeep is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: