Category: oUF: Layouts
Addon Information
Download Latest Version.
To add favorites please register for a free account. If you already have one you need to login. How do I install this? (FAQ)
Coldfury's Portal Bug Reports Feature Requests

This file is a Addon for oUF by haste. You must have that installed before this Addon will work.

Author:
Version:
1.4
Date:
04-19-2008 12:55 PM
Size:
13.08 Kb
Downloads:
2,973
Favorites:
14
MD5:
Pictures
Click to enlarge
oUF_Lighterfluid
oUF Lighterfluid
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.
  Change Log - oUF Lighterfluid
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 - oUF Lighterfluid
Sorry, there are currently no optional files available.
  Comments - oUF Lighterfluid
Post A Reply Comment Options
Old 04-11-2008, 06:14 PM  
Flarin
Premium Member
 
Flarin's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 215
File comments: 97
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..."
Flarin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-11-2008, 03:19 PM  
Coldfury
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 17
File comments: 71
Uploads: 3
Re: buffs

Quote:
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   Edit/Delete Message Reply With Quote
Old 04-11-2008, 02:22 PM  
cozmos
A Kobold Labourer

Forum posts: 0
File comments: 4
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   Edit/Delete Message Reply With Quote
Old 04-11-2008, 11:41 AM  
Coldfury
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 17
File comments: 71
Uploads: 3
Quote:
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-2008 at 01:15 PM.
Coldfury is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-11-2008, 09:48 AM  
Flarin
Premium Member
 
Flarin's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 215
File comments: 97
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..."
Flarin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-10-2008, 10:20 PM  
Flarin
Premium Member
 
Flarin's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 215
File comments: 97
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..."
Flarin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-10-2008, 10:16 PM  
Coldfury
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 17
File comments: 71
Uploads: 3
Quote:
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   Edit/Delete Message Reply With Quote
Old 04-10-2008, 09:42 PM  
Flarin
Premium Member
 
Flarin's Avatar
Premium Member
Interface Author - Click to view interfaces

Forum posts: 215
File comments: 97
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..."

Last edited by Flarin : 04-10-2008 at 10:15 PM.
Flarin is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-10-2008, 06:57 PM  
Coldfury
A Deviate Faerie Dragon
Interface Author - Click to view interfaces

Forum posts: 17
File comments: 71
Uploads: 3
Quote:
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.

Quote:
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-2008 at 06:58 PM.
Coldfury is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Old 04-10-2008, 06:01 PM  
hipjipp
A Cliff Giant
 
hipjipp's Avatar
Interface Author - Click to view interfaces

Forum posts: 77
File comments: 191
Uploads: 9
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.
__________________
Roarcat will eat you! Roar! =)
hipjipp is offline Report comment to moderator   Edit/Delete Message Reply With Quote
Post A Reply



Category Jump:




The Network:
EQInterface | EQ2Interface | LoTROInterface | MMOInterface | War.MMOUI | WoWInterface | VGInterface | Allakhazam | Thottbot | Wowhead | Zam


©2009 MMOUI / ZAM Network
vBulletin - Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.