Download
(991 b)
Download
Updated: 12-12-10 03:08 PM
Addon for:
oUF.
Updated:12-12-10 03:08 PM
Created:11-01-08 04:19 AM
Downloads:22,418
Favorites:140
MD5:
oUF Smooth Update  Popular! (More than 5000 hits)
Version: 1.4a
by: Xuerian [More]
Smoothly animates status bars on oUF frames.

You can smooth bars in various ways:
  • frame.Health.Smooth = true
  • frame.Power.Smooth = true
  • frame:SmoothBar(frame.Health)
  • frame:SmoothBar(frame.Power)
  • frame:SmoothBar(any other statusbar)
1.4a
Removed debugging

1.4
Updated TOC
No longer smooths changes between status bars with different maximum values
(Most obvious on target changes)

1.3
Fixed namespace acquisition

1.2
Applied fixes in comments. Partly untested.


1.1
Updated API
(frame.Smooth(Power|Health) to frame.(Health|Power).Smooth)
Added :SmoothBar(bar) method to frame for non-standard bars.
Archived Files (3)
File Name
Version
Size
Author
Date
1.3
1kB
Xuerian
01-12-10 04:13 PM
1.2
1kB
Xuerian
01-12-10 01:28 AM
1.1
959B
Xuerian
11-01-08 02:16 PM


Post A Reply Comment Options
Unread 12-13-10, 04:32 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4283
File comments: 1961
Uploads: 40
Taet, that would be trivial, but would need to be implemented in the layout you use, not in a plugin. Ask the author of the layout you use to add an option, find a different layout that works this way (I know there are several out there), or learn WoW Lua and edit the layout yourself.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 07-09-10, 10:52 AM  
Taet
A Murloc Raider

Forum posts: 7
File comments: 59
Uploads: 0
Any programer, plz create negate logic for this plugin.

MAX HP = empty bar
lossed HP = filed bar
death = full bar
Taet is offline Report comment to moderator  
Reply With Quote
Unread 02-06-10, 02:34 PM  
ichik
A Murloc Raider
 
ichik's Avatar
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 264
Uploads: 5
When changing targets sometimes (when new target has more power or hp or has different type of power) bars update smothly, is there a way to update them smoothly only for changes of current target/tot?
ichik is offline Report comment to moderator  
Reply With Quote
Unread 01-18-10, 08:10 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Edit: Disregard. It would help if I had the latest version (1.3).

Is there a way to speed up the pace that the bar fills/depletes? I like the smooth effect, but it seems to be quite delayed after damage is given or taken. I'd rather not get rid of smooth update, but rather make it more sensitive to changes in health / power.
Last edited by Toran : 01-18-10 at 08:35 PM.
Toran is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 04:09 PM  
mrfit
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
Originally posted by Xuerian
The author of oUF_might must add support for it in the layout.

If you wish to add support for it yourself, please read the description for this mod, as that quite simply answers "How".
deleted the first 3 lines in ur .lua, now its working thx
mrfit is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 02:03 PM  
Xuerian
A Fallenroot Satyr
 
Xuerian's Avatar
AddOn Author - Click to view AddOns

Forum posts: 24
File comments: 157
Uploads: 9
Originally posted by mrfit
how do i get this addon work? :x i have oUF and oUF_might, when i put this addon in my addon folder its not working.
The author of oUF_might must add support for it in the layout.

If you wish to add support for it yourself, please read the description for this mod, as that quite simply answers "How".
Xuerian is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 07:29 AM  
mrfit
A Kobold Labourer

Forum posts: 0
File comments: 5
Uploads: 0
how do i get this addon work? :x i have oUF and oUF_might, when i put this addon in my addon folder its not working.
mrfit is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 05:09 AM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4283
File comments: 1961
Uploads: 40
Originally posted by mrruben5
It's for horizontal bars only. You'll have to ask Roth for a feature request
oUF Smooth Update works on both horizontal and vertical bars; it does not include any code that checks for or is affected by a bar's orientation.

That said, though, you are correct in that Roth would need to add support in his layout.
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 01-12-10, 04:40 AM  
mrruben5
Guest

Join Date: Not Yet
Forum posts: 0
File comments: 0
Uploads: 0
Originally posted by c0ding
How to make it works with only de button bar style?

http://www.wowinterface.com/download...lerDiablo.html

It's from Zork, but only the button bar.

Regards,
It's for horizontal bars only. You'll have to ask Roth for a feature request
Report comment to moderator  
Edit/Delete Message Reply With Quote
Unread 11-03-09, 09:46 AM  
c0ding
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
How to make it works with only de button bar style?

http://www.wowinterface.com/download...lerDiablo.html

It's from Zork, but only the button bar.

Regards,
c0ding is offline Report comment to moderator  
Reply With Quote
Unread 08-20-09, 11:48 PM  
FatalEntity
A Defias Bandit
AddOn Compiler - Click to view compilations

Forum posts: 2
File comments: 5
Uploads: 3
I was having a problem with the status bar being full even if it should be empty. By applying the smoothing function to the health bar and mana bar and logging in on a warrior or DK its most noticeable that their rage/runic power bar is at FULL and not empty as it should be when you log in (assuming you diffident log out with some amount of power. Happens to any statsbar that should be at zero after it is created.

I fixed it by changing the Smooth function to this

Code:
local function Smooth(self, value)
	if value ~= self:GetValue() then
		smoothing[self] = value
	else
		smoothing[self] = nil
		self:SetValue_(value) -- Added this
	end
end
Last edited by FatalEntity : 08-20-09 at 11:49 PM.
FatalEntity is offline Report comment to moderator  
Reply With Quote
Unread 05-28-09, 11:50 AM  
wagglesmurfsignup
A Defias Bandit

Forum posts: 3
File comments: 5
Uploads: 0
Great work Gotai!
wagglesmurfsignup is offline Report comment to moderator  
Reply With Quote
Unread 04-21-09, 04:54 PM  
Phanx
A Pyroguard Emberseer
 
Phanx's Avatar
AddOn Author - Click to view AddOns

Forum posts: 4283
File comments: 1961
Uploads: 40
Thank you, Gotai!
Phanx is offline Report comment to moderator  
Reply With Quote
Unread 04-08-09, 12:19 PM  
Gotai
A Murloc Raider
AddOn Author - Click to view AddOns

Forum posts: 5
File comments: 133
Uploads: 10
Fix for bars not filling completely.

Here's a fix for the bars not filling completely. Replace lines 39-41 with:

Code:
		if cur == value or abs(cur - value) < 2 then
			bar:SetValue_(value)
			smoothing[bar] = nil
		end
We're currently working out the cause of the bars crossing the entire screen. Should have a fix for that shortly.

Edit: Thanks to diligent testing by Caellian, I'm fairly sure this should patch the problem for good: http://pastey.net/111986

For the interested few, GetValue() returns wonky values before the first SetValue. One of the possible returns is a QNAN value, which was causing the problem.
Last edited by Gotai : 04-09-09 at 06:16 AM.
Gotai is offline Report comment to moderator  
Reply With Quote
Unread 02-09-09, 08:19 PM  
Toran
A Nerdscale Dorkin
 
Toran's Avatar

Forum posts: 142
File comments: 430
Uploads: 0
Originally posted by hipjipp
I've been noticing a small "bug" or perhaps a slight glitch.. When creating a new character or getting onto a low-leveled one, the bar isn't filled completely... There's about 5-10 pixels missing on the bar when it's "full". Could this be fixed with anything or am i stuck with it? It disappears after a certain hp-limit, but i havn't payed to close attention to it to say when the limit is reached.
Any thoughts on how to fix this? I notice the same thing on my low lvl bank toon (shaman orc). Didn't notice on my lvl 26 Priest Undead. Haven't checked my others yet.

Edit: Happens on my lvl 70 Rogue also, but only on the energy bar - last few pixels missing. Seems to be fixed on a reload in his case.
Last edited by Toran : 02-18-09 at 09:02 PM.
Toran is offline Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: