Download
(22 Kb)
Download
Updated: 07-11-11 01:44 PM
Pictures
File Info
Updated:07-11-11 01:44 PM
Created:07-29-10 02:43 AM
Downloads:4,354
Favorites:42
MD5:
oUF Svelte
Version: 2.3
by: Ferous [More]
Requires oUF 1.5.x to work!

See Changelog For Changes!

Most Ideal for Healing
But nice to use as a Tank or DPS!


Units Supported
  • Player
  • Target
  • Target of Target
  • Focus
  • Pet/Vehicle
  • Party/Raid (not tested v2.3 - I would assume it works though.)

Other Features
  • Castbar and Castbar Icons for Player & Target.
  • Buffs and DeBuffs for Player & Target.
  • Debuffs on Focus, Buffs & Debuffs for Pet.
  • Numerical Combo Points.
  • HolyPower, SoulShards, EclipseBar, and Runebar Display.
  • Tags for Healers on Party/Raid Frames. Also Weakened Soul Indicator.
  • Aggro border on Party/Raid Frames.
  • DeBuff Highlighting on Party/Raid Frames.
  • Raid Markers on party/raid frames.
  • Mouseover Highlight on Frames.
  • Heal Prediction
  • oUF_Experience
  • oUF_Reputation

Plug-ins Supported

Credits
  • P3lim and Haste for base code (oUF_Lily and oUF_P3lim).
  • EvilPaul for reference code on the new modules.

Notes
  • Added Weakened Soul indicator, shows as <<.
  • I added fast frequentUpdates. You can change on the top of the Lua.
  • oUF_MoveableFrames is recommended if you want to move it around and don't want to sift through the Lua.
  • The config is not done. This layout can and will always change.

To Do
  • Config on top of Lua still a work in progress! I will try to make it better as I go along.

Known Issues
  • Not showing debuff highlight that I am aware of.

-------------- CONFIG (Still a work in progress. I still need to add config for other buffs and debuffs. )

Code:
-- CONFIG (still a work in progress, please bear with me while I make it!)

-- Player Config
	-- Set Size
	
	local statusbarcolorz = {.15, .15, .15, 1}		-- health statusbar color
	
	local backdropcolorz = {0, 0, 0, 1}				-- health backdrop color
	
	local hpbackdropcolorz = {0, 1, 1, 0.5}			-- health backdrop color
	
	local powerbackdropcolorz = {0, 0, 0, 1}		-- power backdrop color
	
	local powerbarbg = {.50, .50, .50}				-- power bar background color
	
	local castbarcolor = {0, 1, 1, .5}				-- cast bar color
	
	local powerbackgroundalpha = 0.3				-- power bar background alpha
	
	local powercolorclassz = true					-- color power by class. Make false for no class colors. 
	local powercolortapppingz = true				-- color the power if target is tapped
	local powerdisconnectz = false					-- color the power if target is disconnected
	
	local healthsetheightz = 20						-- Player and Target Height
	
	local playersetwidth = 230						-- Player Set Width
	local targetsetwidth = 230						-- Target Set Width
	
	local petsetwidth = 119							-- Pet Set Width
	local petsetheight = 20							-- pet set height
	
	local focussetwidth = 119						-- focus set width
	local focussetheight = 20						-- focus set height
	
	local targettargetwidth = 119					-- target set width
	local targettargetsetheight = 20				-- target set height
	
	local powerSetWidth = 230						-- power set width
	local powerSetHeight = 20						-- power set height
	
	local playerdebuffz = true						-- show or hide players debuffs
	
	local targetdebuffz = true						-- false to show, true to hide
	
	local showdonlyplayerdebuffs = true				-- Show only player debuffs on target, if false, shows all debuffs including yours and party/raid
		
	local showonlyplayerbuffsontarget = true		-- Show only player buffs on target, if false shows all buffs including yours and party/raid
	
	local enableplayerbuffs = true					-- Show or hide buffs on player (buffs top left of screen)
	
	local enabletargetbuffs = true					-- Show or hide target buffs
	
	local enabletargetcombopoints = true			-- Show or hide numerical combo points
	
	local enablepetauras = true 					-- show or hide pet auras (buffs and debuffs)
	
	local enablefocusauraz = true					-- show or hide focus auras (buffs and debuffs)
	
	local castbarz = true							-- show or hide castbars
	
	local castbartextz = true						-- Castbar text
	
	local castbariconz = true						-- castbar Icon for target and player
	
	-- Player Buffs
		--[[player buff parent, 
		make self to anchor to player]]			local playerbuffparent = UIPARENT
		--[[player buff set point]]				local playerbuffanchor = 'TOPLEFT'
		--[[player horizontal position]]		local playerbuffhorizontal = 10 -- going right
		--[[player vertical position]]			local playerbuffverticalpos = -5 -- Going down
		--[[player buff column height]]			local playerbuffheight = 44
		--[[player buff row width]]				local playerbuffwidth = 600
		--[[player buff icon number shown]]		local playerbuffnumber = 20
		--[[player buff size]]					local playerbuffsize = 22
		--[[player buff spacing]]				local playerbuffspacing = 4
		--[[player buff initial anchor]]		local playerbuffinitialanchor = 'TOPLEFT'
		--[[player buff vertical growth]]		local playerbuffverticalgrowth = 'DOWN'
		--[[player buff horizontal growth]]		local playerbuffhorizontalgrowth = 'RIGHT'
		
	
		
		
-- Config End
-------------------------- RAID CONFIG

Code:
-- Config

-- make all false to show nothing

local showsolo = false	-- Show player when not in raid
local showplayer = true	-- show player in raid frames
local showparty = true	-- show raid frames when in party
local showraid = true	-- show raid frames

local height, width = 20, 77	-- height and width of raid frames
local scale = 1.0	-- scale of raid frames

-- Heal Prediction config

local healpredict = true	-- true for on, false for off.

local healmaxoverflow = 1.05	-- How far you want the heal prediction to go past HP bar

local healpredictopacity = 0.5	-- heal prediction opacity of texture

local freqnum = 0.5 -- Change depending on how fast you want things to udpate

local namenum = 3 -- How many letters to show in raid names

local texture = [=[Interface\AddOns\oUF_Svelte\fer25]=]
local aggro = [=[Interface\AddOns\oUF_Svelte\aggro]=]
local font, fontsize, fontstyle = [=[Interface\AddOns\oUF_Svelte\Marke.ttf]=], 8, 'OUTLINEMONOCHROME'

local backdrop = {
    bgFile = [=[Interface\ChatFrame\ChatFrameBackground]=],
    insets = {top = 0, left = 0, bottom = 0, right = 0},
}
07-11-11 v 2.3

-I am just here, updating it and just saying I'm here now, I have a trial and updated it, though I haven't tested the Party/Raid, everything else works as far as I know.

11/4/2010 v 2.2

-Fixed the code up. Made it to where everything is seperated now (*looks at Carebear*)
-Made the config alot nicer, but still needs options for buffs and debuffs on all units except player buff config is already added.

10/31/2010 v 2.14

Happy Halloween!

-Added oUF_Experience and oUF_Reputation officially.
-Added the druid Eclipse Bar.
-Added Castbar Icons.
-Added oUF_boring_totembar support. (Note - Only use oUF_Totembar or oUF_boring_totembar one at a time, not both!)
-Fixed the Party/Raid Setpoints.
-Changed opacity of HolyPower and SoulShards while in combat and out of combat.
-Also changed opacity of other modules, listed below:

(OOC - Out of Combat. IC - In Combat)

-oUF_Experience - OOC shows / IC hides
-oUF_Reputation - OOC shows / IC hides
-HolyPower - OOC hides / IC shows
-SoulShards - OOC fades .50% opacity / IC shows
-EclipseBar - OOC fades .50% opacity / IC shows

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

10/27/2010 v 2.0

2.0.1 - Fixed a tiny bug

-NEW LOOK! Has the same look and feel of everything else from the last layout.
-Used oUF_Lily and oUF_P3lim for base. My old layout was very gritty and ugly. I needed to redo it.
-Updated for Cataclysm 4.0.1 and beyond.
-Added HolyPower, SoulShards, HealPrediction.
-Added oUF_Experience and oUF_Reputation. I still sort of need to mess with this.
-Better config coming soon.

8/5/2010 v1.4

(Thanks to Dawn for Tags)
-Healing Tags for Priests, Paladins, Druids, and Shamans.
-Added Raid/Party Frames.
-Added Truncated names on target, as well as ToT, party and raid.
-Healcomm4 Added.
-Added Threat Indication. Border around Frame.
-Added DeBuff Highlighting pertaining to your class. Light Alpha Coloring over Frame.
-Added Config on top of Lua.



7/30/2010 v 1.3

-Made a minor change in the debuff display on both player and target. Sorry for minor update! NO need -to update if you don't want to.



7/29/2010 v. 1.2

-a built in Runebar, and oUF_TotemBar Support. Changed the castbar a tiny bit.



7/29/2010 v 1.1

- Added Combo Points, oUF_WeaponEnchant ( I needed it on my Rogue), as well as level on target,
-made level difficultycolor, and made Percent HP on player UF CurHP instead. Added a bit of a
-better config, though Idk how better it is. Also moved DeBuffs on top of player frame. Changed
-some colors.



7/28/2010 v 1.0

- Initial Release
Archived Files (8)
File Name
Version
Size
Author
Date
2.2
22kB
Ferous
11-04-10 02:46 PM
2.1
21kB
Ferous
10-31-10 05:36 PM
2.0.1
20kB
Ferous
10-27-10 01:03 PM
1.4
40kB
Ferous
08-05-10 09:56 PM
1.3
24kB
Ferous
07-30-10 07:19 PM
1.2
24kB
Ferous
07-29-10 11:38 PM
1.1
23kB
Ferous
07-29-10 07:58 PM
1.0
23kB
Ferous
07-29-10 02:43 AM


Post A Reply Comment Options
Old 07-29-10, 05:02 AM  
geeksugar
A Kobold Labourer
 
geeksugar's Avatar

Forum posts: 0
File comments: 34
Uploads: 0
<3
geeksugar is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 05:41 AM  
Jabar
Premium Member
 
Jabar's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 1
Looks nice.
I can easily identify most of my functions and my code skeleton.

Just some thoughts after browsing through the code :

Code:
local cbp = [[Interface\Addons\oUF_Svelte\media\cbp]]
You don't need this because you have no combo points system. The file isn't even attached in your archive.


Code:
self.name = bar_hp:CreateFontString(nil, "OVERLAY")
[...]
self:Tag(self.name, '[raidcolor][name][plus]')
You're writing this four times except for your player frame, it feels a bit redundant.
Perhaps modify the code to something like this (from line 439):

Code:
if (unit == 'player') then
	-- your 'self.perchp' and 'self.pp' stuff
else
	self.name = bar_hp:CreateFontString(nil, "OVERLAY")
	self.name:SetFont(font, fsize, fstyle)
	self.name:SetJustifyH("LEFT")
	self.name:SetPoint("LEFT", 3, 0)
	self.name.frequentUpdates = true
	self:Tag(self.name, '[raidcolor][name][plus]')
end
And then delete all the other occurrences of self.name

Good luck !
Jabar is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 06:06 AM  
weasoug
A Flamescale Wyrmkin
 
weasoug's Avatar
AddOn Author - Click to view AddOns

Forum posts: 122
File comments: 318
Uploads: 15
Originally posted by Jabar
Looks nice.
I can easily identify most of my functions and my code skeleton.

Just some thoughts after browsing through the code :

Code:
local cbp = [[Interface\Addons\oUF_Svelte\media\cbp]]
You don't need this because you have no combo points system. The file isn't even attached in your archive.


Code:
self.name = bar_hp:CreateFontString(nil, "OVERLAY")
[...]
self:Tag(self.name, '[raidcolor][name][plus]')
You're writing this four times except for your player frame, it feels a bit redundant.
Perhaps modify the code to something like this (from line 439):

Code:
if (unit == 'player') then
	-- your 'self.perchp' and 'self.pp' stuff
else
	self.name = bar_hp:CreateFontString(nil, "OVERLAY")
	self.name:SetFont(font, fsize, fstyle)
	self.name:SetJustifyH("LEFT")
	self.name:SetPoint("LEFT", 3, 0)
	self.name.frequentUpdates = true
	self:Tag(self.name, '[raidcolor][name][plus]')
end
And then delete all the other occurrences of self.name

Good luck !
very nicely put there Jabar. there was me slowly going over the code. and was going to point out a few things. but you was there before. as i was posting about your layout.

but that aside. its looking very nice. good job.
weasoug is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 06:29 AM  
blkdrgn
A Warpwood Thunder Caller
 
blkdrgn's Avatar
AddOn Author - Click to view AddOns

Forum posts: 91
File comments: 24
Uploads: 3
Very nice, I expected as much from you.

I will get this figured out one day...hehe.
__________________
Missconfused 80 Dk
Missbehavied 80 Hunter
Missconduct 80 Rogue
Missconstrew 80 Mage
-Many other lower level alts=)
blkdrgn is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 07:14 AM  
Aprikot
A Frostmaul Preserver
 
Aprikot's Avatar
AddOn Author - Click to view AddOns

Forum posts: 284
File comments: 67
Uploads: 2
Awesome layout...totally made my day!
Aprikot is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 01:06 PM  
Porsha
A Black Drake

Forum posts: 88
File comments: 106
Uploads: 0
LOVE the pet happpiness!

Great job <3
Porsha is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 02:36 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 567
Uploads: 32
Originally posted by Jabar
Looks nice.
I can easily identify most of my functions and my code skeleton.

Just some thoughts after browsing through the code :

Code:
local cbp = [[Interface\Addons\oUF_Svelte\media\cbp]]
You don't need this because you have no combo points system. The file isn't even attached in your archive.



You know I did delete this... but, maybe I deleted it and not saved it lol but I remember clearly deleting it :P I hate messing with the ouf combos, i just use BCP here on WoWi :P


Code:
self.name = bar_hp:CreateFontString(nil, "OVERLAY")
[...]
self:Tag(self.name, '[raidcolor][name][plus]')
You're writing this four times except for your player frame, it feels a bit redundant.
Perhaps modify the code to something like this (from line 439):

Code:
if (unit == 'player') then
	-- your 'self.perchp' and 'self.pp' stuff
else
	self.name = bar_hp:CreateFontString(nil, "OVERLAY")
	self.name:SetFont(font, fsize, fstyle)
	self.name:SetJustifyH("LEFT")
	self.name:SetPoint("LEFT", 3, 0)
	self.name.frequentUpdates = true
	self:Tag(self.name, '[raidcolor][name][plus]')
end
And then delete all the other occurrences of self.name

Good luck !
This is actually a great idea, thanks

Also, yes i used you're skeleton of a code, I could have used other layouts, i just sort of had a spur of the moment and well i like how you layed it out rather than others, in the past i've used oUF_nins layout, which I get alot of idea,s from as well. and was so tired i didn't credit you
Last edited by Ferous : 07-29-10 at 02:38 PM.
Ferous is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 02:39 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 567
Uploads: 32
Originally posted by Porsha
LOVE the pet happpiness!

Great job <3
lol this is actually the build in happiness in the current oUF Version
Ferous is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 04:39 PM  
Jabar
Premium Member
 
Jabar's Avatar
Premium Member
AddOn Author - Click to view AddOns

Forum posts: 8
File comments: 41
Uploads: 1
Also, yes i used you're skeleton of a code, I could have used other layouts, i just sort of had a spur of the moment and well i like how you layed it out rather than others, in the past i've used oUF_nins layout, which I get alot of idea,s from as well. and was so tired i didn't credit you
Sure, no problem. I don't mind.
I was just passing by, looking through the latest layouts and I was pleased to see my layout being of some help to someone else.
It actually made me giggle to recognize the code I pushed a few hours ealier being reused.
Jabar is offline Report comment to moderator  
Reply With Quote
Old 07-29-10, 06:29 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 567
Uploads: 32
Originally posted by Jabar
Sure, no problem. I don't mind.
I was just passing by, looking through the latest layouts and I was pleased to see my layout being of some help to someone else.
It actually made me giggle to recognize the code I pushed a few hours ealier being reused.
haha yeah... well, I was actually working on this straight! HOURS lol literally, was very aggravated, staring at such code for soooooooo long.

Adding some more plugins and fixing some stuff now
Ferous is offline Report comment to moderator  
Reply With Quote
Old 07-30-10, 07:30 PM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 567
Uploads: 32
made tiny update, made to where there is more width with the debuff timers, cause it was buggin' meh. :P Other than that, no need to update unless... you want to.. Thanks!
Ferous is offline Report comment to moderator  
Reply With Quote
Old 07-31-10, 07:15 AM  
Sanrah
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
Abbreviate/Truncate

How can I change the health text of the player frame to show 22k instead of 22000 hp? I'm new to lua stuff, but totally love these frames I've managed to add/change/delete stuff to my liking, but this is something I just can't figure out. I'd also like to know how I can abbreviate (or truncate) target names. Preferable without '...' at the end.
Thanks in advance!
Sanrah is offline Report comment to moderator  
Reply With Quote
Old 08-01-10, 02:07 AM  
Ferous
Sheer Sense of Doom
AddOn Author - Click to view AddOns

Forum posts: 863
File comments: 567
Uploads: 32
Re: Abbreviate/Truncate

Originally posted by Sanrah
How can I change the health text of the player frame to show 22k instead of 22000 hp? I'm new to lua stuff, but totally love these frames I've managed to add/change/delete stuff to my liking, but this is something I just can't figure out. I'd also like to know how I can abbreviate (or truncate) target names. Preferable without '...' at the end.
Thanks in advance!
Hey there sanrah! I have a fix, but I'm going to wait to push the update out, till tomorrow. If you want, for now, you can add this:

lua Code:
  1. local utf8sub = function(string, i, dots)
  2.     local bytes = string:len()
  3.     if (bytes <= i) then
  4.         return string
  5.     else
  6.         local len, pos = 0, 1
  7.         while(pos <= bytes) do
  8.             len = len + 1
  9.             local c = string:byte(pos)
  10.             if (c > 0 and c <= 127) then
  11.                 pos = pos + 1
  12.             elseif (c >= 192 and c <= 223) then
  13.                 pos = pos + 2
  14.             elseif (c >= 224 and c <= 239) then
  15.                 pos = pos + 3
  16.             elseif (c >= 240 and c <= 247) then
  17.                 pos = pos + 4
  18.             end
  19.             if (len == i) then break end
  20.         end
  21.  
  22.         if (len == i and pos <= bytes) then
  23.             return string:sub(1, pos - 1)..(dots and "..." or "")
  24.         else
  25.             return string
  26.         end
  27.     end
  28. end
  29.  
  30. if (not oUF.Tags["shortname"]) then
  31.     oUF.Tags["shortname"] = function(unit)
  32.         local name = UnitName(unit)
  33.         return utf8sub(name, 15, false)
  34.     end
  35. end

Add this with the other locals after the config, and then replace the [name] with [shortname], this is for the abbreviated names. Replace 15 with how much you want to show.

For the HP, I'm not sure yet but i'll get to it :P

edit - I forgot to add you want to register the event, just incase you didn't or if anyone else sees this.

Add this line after the above:

lua Code:
  1. oUF.TagEvents["shortname"] = "UNIT_NAME_UPDATE"
Last edited by Ferous : 08-01-10 at 12:30 PM.
Ferous is offline Report comment to moderator  
Reply With Quote
Old 08-01-10, 07:25 AM  
Sanrah
A Defias Bandit

Forum posts: 2
File comments: 5
Uploads: 0
Re: Re: Abbreviate/Truncate

Originally posted by Ferous
Hey there sanrah! I have a fix, but I'm going to wait to push the update out, till tomorrow. If you want, for now, you can add this:

[...]

Add this with the other locals after the config, and then replace the [name] with [shortname], this is for the abbreviated names. Replace 15 with how much you want to show.

For the HP, I'm not sure yet but i'll get to it :P
Thanks a lot, worked like a charm
Sanrah is offline Report comment to moderator  
Reply With Quote
Old 08-08-10, 10:49 AM  
cocotimbo
A Deviate Faerie Dragon
 
cocotimbo's Avatar

Forum posts: 11
File comments: 62
Uploads: 0
Hi,
I would like to download svelteUI but the SS I saw here in your layout of your UI is quite different from the ones in the entire package.
I do not like those I do do like this very much!
How can I have the configuration exactly like in your layout? I hope you have it somewhere.
It's one of the best UI I ever saw. Congratulation!

PS Pls. tell me it is possible to have this!!!
cocotimbo is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: