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,422
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 11-05-09, 06:26 AM  
Xruptor
A Flamescale Wyrmkin
 
Xruptor's Avatar
AddOn Author - Click to view AddOns

Forum posts: 137
File comments: 640
Uploads: 22
Originally posted by mrruben5
This would be because the raid frames are a secure header. If you really want to manage it's position, you have to edit the lua file.
Version 1.4 of oUF_MoveableFrames now supports header frames. Please take a look at the newly included functions.
__________________
Click HERE for the ultimate idiot test.

if (sizeof(sadness) > sizeof(happiness)) { initDepression(); }
Report comment to moderator  
Reply With Quote
Unread 03-17-10, 04:35 AM  
Humpfldump
A Kobold Labourer

Forum posts: 1
File comments: 11
Uploads: 0
Castbar

Hi everyone,

just switched to this oUF-Layout and really like it so far.
There is only one point I'm not totally happy with right now... in my layout the player's-castbar is included in the player frame.
I would like to move/clone it, so it is bigger and outside the player frame like a stand-alone-frame (like showing here: http://s.wowinterface.com/preview/pvw21959.jpeg - the big one right above the grid-raidview).

Is it possible to edit Hypocrisy to view such a big, standalone castbar or is another addon doing this in the screen?

Thanks in advance for your help.
Report comment to moderator  
Reply With Quote
Unread 03-25-10, 09:35 AM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Castbar

Originally posted by Humpfldump
Hi everyone,

just switched to this oUF-Layout and really like it so far.
There is only one point I'm not totally happy with right now... in my layout the player's-castbar is included in the player frame.
I would like to move/clone it, so it is bigger and outside the player frame like a stand-alone-frame (like showing here: http://s.wowinterface.com/preview/pvw21959.jpeg - the big one right above the grid-raidview).

Is it possible to edit Hypocrisy to view such a big, standalone castbar or is another addon doing this in the screen?

Thanks in advance for your help.

Sorry for the late response, I haven't been playing recently.

You can in fact move the castbar in the player frame out and make it bigger. If you go to the section of the code titled "player, target and party castbar" notice the following code.

Code:
self.Castbar:SetWidth(137)
self.Castbar:SetFrameStrata("LOW")
self.Castbar:SetPoint("BOTTOMRIGHT", self.Title, "BOTTOMRIGHT", -0.5, 0)

if(unit == "player") then
        self.Castbar:SetHeight(13.5)
        self.Castbar.Text:SetFont(font, fontsize+1)
else
        self.Castbar:SetHeight(12.5)
        self.Castbar.Text:SetFont(font, fontsize)
end
The code sets the castbar width to 137, makes it appear behind other frames, like bags and such, then positions the bottom-right corner of the castbar in the bottom-right corner of the title of the unit frames. The player castbar is then given a height of 13.5, and the rest are given heights of 12.5.

You may want to position the castbar relative to the "WorldFrame" instead of "self.Title".

If you want to position the bars separately you will need a series of if statements with the different settings.

You may also notice that several lines are commented out. They begin with the "--" characters. These lines are there in case you want icons on the castbars. Notice that none are currently shown.

Hope that helps.
Last edited by Hypocrisy : 03-25-10 at 09:39 AM.
Report comment to moderator  
Reply With Quote
Unread 03-25-10, 02:31 PM  
Nuruk
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Gradient Banding

Since patch 3.3.3. the gradient in all of the bars is banding instead of appearing seamless as it was prior to the patch. Has anyone else experienced this? By the way, I am on a Mac. I deleted my config file in case it was something on my end, but that didn't work and I don't know what else to do.

Here is a screenshot of what I'm seeing.

http://img23.imageshack.us/img23/7876/banding.jpg
Last edited by Nuruk : 03-25-10 at 02:31 PM.
Report comment to moderator  
Reply With Quote
Unread 03-25-10, 11:25 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Gradient Banding

Originally posted by Nuruk
Since patch 3.3.3. the gradient in all of the bars is banding instead of appearing seamless as it was prior to the patch. Has anyone else experienced this? By the way, I am on a Mac. I deleted my config file in case it was something on my end, but that didn't work and I don't know what else to do.

Here is a screenshot of what I'm seeing.

http://img23.imageshack.us/img23/7876/banding.jpg
The problem is the texture. Textures that are smaller then the bar are now repeating instead of stretching it seems. oUF_Hypocrisy currently uses the armory texture. Most addons that uses this texture are suffering from the same issue. You can change the texture to pretty much any other by just changing this line of code.

Code:
local bartex = "Interface\\AddOns\\oUF_Hypocrisy\\media\\statusbar"
There are plenty of texture packages available for download. Alternatively, you can name a bar texture "statusbar.tga" and drop it in the media folder.

I, however, happen to be rather partial to armory, and was hoping to see if I could fix the issue with armory before releasing an update. My apologies if I haven't been as quick as usual, I haven't had much time for WoW lately.
Last edited by Hypocrisy : 03-26-10 at 08:49 AM.
Report comment to moderator  
Reply With Quote
Unread 03-26-10, 06:20 AM  
mrruben5
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Re: Re: Gradient Banding

Originally posted by Hypocrisy
The problem is the texture. Textures that are smaller then the bar are now repeating instead of stretching it seems. oUF_Hypocrisy currently uses the armory texture. Most addons that uses this texture are suffering from the same issue. You can change the texture to pretty much any other by just changing this line of code.

Code:
local bartex = "Interface\\AddOns\\oUF_Hypocrisy\\media\\statusbar"
There are plenty of texture packages available for download. Alternatively, you can name a bar texture "statusbar.tga" and drop it in the media folder.

I, however, happen to be rather partial to armory, and was hoping to see if I could fix the issue with armory before releasing an update. My apologies if I haven't been as quick as usual, I haven't had much time for WoW lately.

Edit: I was kind of hoping somebody else would fix the armory texture, seeing as I'm more of code guy then a graphic guy. I applied a temporary fix though.
I have my own oUF Layout but I am also the author of the Armory texture. I'll try and fix it and let you know (if I don't please PM me, as I might have forgotten).

EDIT:
lua Code:
  1. local function fixStatBar(bar)
  2.     bar:GetStatusBarTexture():SetHorizTile(false)
  3. end
Last edited by : 03-26-10 at 06:36 AM.
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 03-26-10, 08:56 AM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Re: Re: Gradient Banding

Originally posted by mrruben5
I have my own oUF Layout but I am also the author of the Armory texture. I'll try and fix it and let you know (if I don't please PM me, as I might have forgotten).

EDIT:
lua Code:
  1. local function fixStatBar(bar)
  2.     bar:GetStatusBarTexture():SetHorizTile(false)
  3. end
Thank you for the help. It seems pretty straight forward, but I was looking for that code fix for a few days after the patch. The frames have been fixed now.
Report comment to moderator  
Reply With Quote
Unread 03-29-10, 06:49 AM  
Humpfldump
A Kobold Labourer

Forum posts: 1
File comments: 11
Uploads: 0
Re: Re: Castbar

Originally posted by Hypocrisy
Sorry for the late response, I haven't been playing recently.

You can in fact move the castbar in the player frame out and make it bigger. If you go to the section of the code titled "player, target and party castbar" notice the following code.

(...)

Hope that helps.
Thanks a lot for your reply. I'll give it a shot as soon as I'll return home
Report comment to moderator  
Reply With Quote
Unread 05-18-10, 02:28 PM  
ishimeru
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
Change in code

What was the change in 2.03 that fixed the armory texture stretch issue?
I still like the way other Hypocrisy revisions look and I want to apply it to those.
Thank you.
Report comment to moderator  
Reply With Quote
Unread 05-25-10, 04:51 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Re: Change in code

Originally posted by ishimeru
What was the change in 2.03 that fixed the armory texture stretch issue?
I still like the way other Hypocrisy revisions look and I want to apply it to those.
Thank you.
For all the bars that needed it I just added

Code:
	bar:GetStatusBarTexture():SetHorizTile(false)
after applying the texture, like so:

Code:
	self.Power:SetStatusBarTexture(bartex)
	self.Power:GetStatusBarTexture():SetHorizTile(false)
If I were feeling really efficient I'd have gone and written up a function for it...but there you have it.
Last edited by Hypocrisy : 05-25-10 at 04:56 PM.
Report comment to moderator  
Reply With Quote
Unread 05-29-10, 07:41 PM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 127
File comments: 319
Uploads: 11
hi ther.e great addon. i hope there will be an update soon. but anyway. i wanted to ask i want to resize the party frames., as i use

Code:
 local scale = 1.2
but the party size is to big. do i just need to chance (scale)

oUF_Party:SetScale(scale)
and if so. is there anything else i ned to chance. and in what format do i do.

ie

oUF_Party:SetScale(128, 75)
Thanks for your time
Report comment to moderator  
Reply With Quote
Unread 06-03-10, 05:12 PM  
Hypocrisy
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 49
Uploads: 1
Originally posted by weasoug
hi ther.e great addon. i hope there will be an update soon. but anyway. i wanted to ask i want to resize the party frames., as i use

Code:
 local scale = 1.2
but the party size is to big. do i just need to chance (scale)



and if so. is there anything else i ned to chance. and in what format do i do.

ie



Thanks for your time
The party frames are generated on an individual basis, in this loop near the end of the code.

Code:
local partytarget = {}
for i = 1, 5 do
	partytarget[i] = oUF:Spawn("party"..i.."target", "oUF_Party"..i.."Target")
	if i == 1 then
		partytarget[i]:SetPoint("BOTTOMRIGHT", party, "TOPRIGHT", 0, 5)
	else
		partytarget[i]:SetPoint("TOP", partytarget[i-1], "BOTTOM", 0, -73.5)
	end
	getglobal("oUF_Party"..i.."Target"):SetScale(scale)
end
Notice that the scale is set each time through the loop. Just go to this line of code

Code:
getglobal("oUF_Party"..i.."Target"):SetScale(scale)
and change "scale" to a value of your choice. For example the following code will make the party frames the normal size, while the rest of your frames would remain 20% larger.

Code:
getglobal("oUF_Party"..i.."Target"):SetScale(1)
Last edited by Hypocrisy : 06-03-10 at 05:13 PM.
Report comment to moderator  
Reply With Quote
Unread 06-27-10, 01:20 AM  
myztikrice
A Kobold Labourer

Forum posts: 0
File comments: 30
Uploads: 0
Smooth

Smooth_Update doesn't seem to be working. When I have it enabled the power bar stays full the entire time even while my mana decreases.

Also is there a clean way to remove the raid/party frames? I mess with some 'Show()' or 'Hide()' stuff in the LUA and they're gone, but I also get an error.
Last edited by myztikrice : 06-28-10 at 05:02 AM.
Report comment to moderator  
Reply With Quote
Unread 06-28-10, 05:16 PM  
imogen
A Kobold Labourer

Forum posts: 0
File comments: 8
Uploads: 0
does not show in my name ... and not percentage or amount of mana and life!!!How can I fix it?
Report comment to moderator  
Reply With Quote
Unread 07-20-10, 08:22 AM  
Bheejom
A Kobold Labourer

Forum posts: 0
File comments: 3
Uploads: 0
wai my computar no werk?!

does not show in my name ... and not percentage or amount of mana and life!!!How can I fix it?
I had the same problem mate, the reason it appears to be happening is because THIS version of Hypocrisy is not compatible with the latest version of oUF. As such, if you downgrade to the last version of oUF you should be golden.

Hope this helps.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: