Download
(13 Kb)
Download
Updated: 04-19-08 10:55 AM
Addon for:
oUF.
Pictures
File Info
Updated:04-19-08 10:55 AM
Created:unknown
Downloads:4,398
Favorites:12
MD5:
oUF Lighterfluid
Version: 1.4
by: Coldfury [More]
This is my layout for the unitframes addon "oUF".

You need some basic LUA knowledge to edit the layout as all configurations are done trough "layout.lua" by coding.

Note: I've commented the code a lot to ease your experience so, please, read carefully "layout.lua" before asking things. The "if - elseif - then" are pretty much self explanatory.

Note²: Atm, the party is horizontal, and only the first 3 raid groups are spawned. But i added/commented the code to revert back to vertical party and 1 raid group showing every members.

Useful Links
oUF - The core mod for the unitframes layout.

oUF_Lily - Layout for oUF by haste.

oUF_P3lim - Layout for oUF by P3lim.

oUF_Banzai - Plugin for oUF to color UFs based on aggro. (*You need LibBanzai-2.0*)

oUF_DispelColor - Plugin for oUF to color UFs based on curable debuffs.

Wowace Forums - oUF modifications/layouts thread.
v1.4
- Fixed LibDruidMana support. (Thanks Gaenjin)

v1.3
- Small fix to the "numberize" function.

v1.2
- Added "numberize" function which format numbers.(ie. 10234 becomes 10.2k and 1929394 becomes 1.9M) It will only "numberize" number over 10k.
- Added separate "updateraidHealth" function for raid units.
- Fixed the pet happiness display on the pet power/mana bar.
(Red=unhappy, Yellow=content, Green=happy)

v1.0
- Initial Release
Optional Files (0)


Post A Reply Comment Options
Old 04-10-08, 04:01 PM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
AddOn Author - Click to view AddOns

Forum posts: 79
File comments: 229
Uploads: 10
nice layout lighter, but can you give me a general direction on some code in your lua?

First; does the
Code:
 if(not unit) then -- fadeout on range
        self.Range = true -- put true to make party/raid frames fade out if not in your range
        self.inRangeAlpha = 1
        self.outsideRangeAlpha = .3 -- and the alpha it will fade out to 
    end
only work on party/raid or can i put it into any other frame?

also, do you have an efficient way of showing deficit values? i tried modifying your code without success.
__________________
Being boring is fine too.
hipjipp is offline Report comment to moderator  
Reply With Quote
Old 04-10-08, 04:57 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by hipjipp
nice layout lighter, but can you give me a general direction on some code in your lua?

First; does the the range fading only work on party/raid?
yes, but thats from oUF. not my layout. You'll need to ask haste about that.

Originally posted by hipjipp
also, do you have an efficient way of showing deficit values? i tried modifying your code without success. [/b]
Code:
:SetText((missing > 0 and "|cffff0000"..miss.."|r") or "")
this is the code for the raid hp, which will show deficit when its over 0, otherwise show nothing.
Last edited by Coldfury : 04-10-08 at 04:58 PM.
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-10-08, 07:42 PM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
I have been looking for a way to shut off the party frames in a Raid. I found this:

party:SetAttribute("showRaid", false)

On another site - but when I put it in your party spawn block it is not recognized. I am sure I am not doing this correctly, perhaps you could lend me a hand?

Is there a way to indicate pet happiness?

Also- the player debuffs collide with the Pet frame. Just thought you would want to know - maybe you don't play a hunter / lock. Thanks for providing comments in the code - very nice!

Thanks for any help you can provide. I really like these unit frames - your layout is really nice, thanks for sharing it!
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Last edited by Flarin : 04-10-08 at 08:15 PM.
Flarin is offline Report comment to moderator  
Reply With Quote
Old 04-10-08, 08:16 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by Flarin
I have been looking for a way to shut off the party frames in a Raid. I found this:

party:SetAttribute("showRaid", false)

On another site - but when I put it in your party spawn block it is not recognized. I am sure I am not doing this correctly, perhaps you could lend me a hand?

Is there a way to indicate pet happiness?

Thanks for any help you can provide. I really like these unit frames - your layout is really nice, thanks for sharing it!
actually, the attribute "showRaid" is for showing the raid into the party header or not. it doesnt affect the party. We didnt find any real solution for this yet, but p3lim has a fix which is creating an onupdate event.
add this at the end of layout.lua
Code:
local hideparty = CreateFrame"Frame"
hideparty:SetScript("OnEvent", function()
	if not InCombatLockdown() then
		if UnitInRaid"player" then party:Hide()
		else party:Show() end
	end
end)
hideparty:RegisterEvent"RAID_ROSTER_UPDATE"
hideparty:RegisterEvent"PLAYER_LOGIN"
this will hide the party frames when you're in a raid.

The mana/focus bar of the pet should be based on happiness color.(red=not happy, yellow=happy, green=very happy). If you want another way to show it, just tell me exactly how you want it.
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-10-08, 08:20 PM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
Wow- thanks for the quick reply - nope, that method is cool for showing the happiness!

Thanks so MUCH!
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Flarin is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 07:48 AM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
Hmm... The pet happiness coloring is not working. Should I post this to Haste or can you take a look at it? My pet died and the power bar was still green.The health bar is always gray.

Thanks for the help! And you tip on hiding the party worked like a charm. This frame system is really growing on me!
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Flarin is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 09:41 AM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by Flarin
Hmm... The pet happiness coloring is not working. Should I post this to Haste or can you take a look at it? My pet died and the power bar was still green.The health bar is always gray.

Thanks for the help! And you tip on hiding the party worked like a charm. This frame system is really growing on me!
i will take a look.

EDIT: i found the problem. doing a fix, testing it, and i should upload in a couples of minutes.

EDIT²: fixed the problem. 1.2 is uploaded.
Last edited by Coldfury : 04-11-08 at 11:15 AM.
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 12:22 PM  
cozmos
A Kobold Labourer

Forum posts: 0
File comments: 15
Uploads: 0
buffs

hey very nice job m8,

I really like the unitframes and want to use it, but I cant see the target buffs.
is there a way to get them showing?
cozmos is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 01:19 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Re: buffs

Originally posted by cozmos
hey very nice job m8,

I really like the unitframes and want to use it, but I cant see the target buffs.
is there a way to get them showing?
to add buffs, add this code to the target frame modification code.
Code:
  local buffs = CreateFrame("Frame", nil, self)
buffs:SetHeight(30)
buffs:SetWidth(280)
buffs:SetPoint("BOTTOMLEFT", self.Health, "TOPLEFT", 2, 5)
buffs.size = 30
buffs.num = 12
buffs.filter = false
self.Buffs = buffs
use the SetPoint() to place it where you want.
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 04:14 PM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
I am not sure is this is intended - my health is 10,100 or so - your numbers report it as 1.0k. Should be 10.0k or 10.1k imho.
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Flarin is offline Report comment to moderator  
Reply With Quote
Old 04-11-08, 10:33 PM  
Coldfury
A Deviate Faerie Dragon
AddOn Author - Click to view AddOns

Forum posts: 18
File comments: 78
Uploads: 3
Originally posted by Flarin
I am not sure is this is intended - my health is 10,100 or so - your numbers report it as 1.0k. Should be 10.0k or 10.1k imho.
not intended - fixed in 1.3 - thanks
Coldfury is offline Report comment to moderator  
Reply With Quote
Old 04-12-08, 06:48 PM  
Miaxi
A Murloc Raider

Forum posts: 4
File comments: 9
Uploads: 0
The aura reskin code doesn't seem to work. :/ Getting ugly white borders instead of your custom texture.
Miaxi is offline Report comment to moderator  
Reply With Quote
Old 04-12-08, 07:21 PM  
Flarin
A Frostmaul Preserver
 
Flarin's Avatar
AddOn Author - Click to view AddOns

Forum posts: 290
File comments: 152
Uploads: 1
Originally posted by Miaxi
The aura reskin code doesn't seem to work. :/ Getting ugly white borders instead of your custom texture.
Be sure to uncomment

Code:
self.PostCreateAuraIcon = auraIcon
As well. Works fine.
__________________

"I will crush and destroy and...ooo...shiny..."

[SIGPIC][/SIGPIC]
Flarin is offline Report comment to moderator  
Reply With Quote
Old 04-12-08, 10:35 PM  
Miaxi
A Murloc Raider

Forum posts: 4
File comments: 9
Uploads: 0
Originally posted by Flarin
Be sure to uncomment

Code:
self.PostCreateAuraIcon = auraIcon
As well. Works fine.
Win, thank you.
Miaxi is offline Report comment to moderator  
Reply With Quote
Old 04-13-08, 07:22 PM  
neov
A Deviate Faerie Dragon

Forum posts: 13
File comments: 63
Uploads: 0
works great for all my tunes - except my druid!

druidmana error

layout.lua 358 attempt to concatenate global "druidmana" a nil value

ouf.lua 236 in function ouf.lua 221

ouf.lua.342 in function spawn

layout.lua 530 in main chunk
neov is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: