WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   hp bars for mobs with low amount of max hp? (https://www.wowinterface.com/forums/showthread.php?t=31058)

Aerials 03-04-10 12:42 PM

hp bars for mobs with low amount of max hp?
 
hi, I'm having problems with my hp bars when the target has a low amount of max hp. here's what i mean:

when targeting the creature with no target before i get this:


when i target it having had a target with a large amount of hp i get this:


i don't have any overrides going for filling the hp bar (i think). anyone know what things could cause this? i really have no idea where the issue would be in my layout.

Aerials 03-04-10 12:52 PM

n/m, i've fixed this now by adding bar:SetValue(min+2) (min+1 wasn't fixing it for the squirrels) to my post update that was only changing the text before. seems to be working fine, yah it makes the health bar show an incorrect amount, but really is it going to be noticable to have it 2 hp off? :D

hawtness!

and banana dance!
:banana:

haste 03-04-10 01:37 PM

Why are you calling :SetValue() regardless? Based on your variable name you don't seem to be doing anything unorthodox.

Aerials 03-04-10 02:27 PM

I wasn't before, and for some reason the bars didn't fill properly on mobs with incredibly low max hp. but overriding the value to add 2 hp seems to work fine. they would however work fine if i targeted myself then the mob (generally it's only critters that have low enough hp to have the issue, but still... as close to perfection as possible is what I'm after.

for example, the rabbits in dal have 1 hp, and the bar would fill half way, the squirrels have 8 hp and the bar wuold fill about 2/3 of the way.

haste 03-04-10 02:30 PM

Quote:

Originally Posted by Aerials (Post 180579)
I wasn't before, and for some reason the bars didn't fill properly on mobs with incredibly low max hp. but overriding the value to add 2 hp seems to work fine. they would however work fine if i targeted myself then the mob (generally it's only critters that have low enough hp to have the issue, but still... as close to perfection as possible is what I'm after.

Can you re-create the issue with other layouts? (ie. Lily or Classic*). Because you really make it sound like a bug in oUF.

* Just make sure you have the same frequentUpdates setting as you use (or just test with it enabled/disabled).

Aerials 03-04-10 02:32 PM

i'll try it out. i'm not sure if it's a bug in oUF, it could really easily be in my layout.

haste 03-04-10 02:34 PM

I would expect it to be if you weren't calling :SetValue() before.

[Clarification]: oUF bug that is.

Aerials 03-04-10 02:35 PM

it's not doing it with lily, so it's gotta be something in my layout.

it's also not doing that in classic, i'm going to try out changing the frequent updates.

Aerials 03-04-10 03:16 PM

i found the problem :D i typo'd colorSmooth to just Smooth (probably a copy paste fail).

haste 03-04-10 03:20 PM

So it's an issue with oUF Smooth Update in other words :).

Aerials 03-04-10 03:27 PM

not unless it's default is on... i had done self.Health.Smooth instead of self.Health.colorSmooth. i'm really not 100% sure if that was the problem though, 'cuz setting it to true or false has the same result (it works). mmmm, i should only work on this stuff when i can give it full attention, because now i can't re-create it at all..... so the probelm is fixed, i'm pretty sure that's the only change i made but i can't get the problem back changing it back. i musta changed something else somewhere else.

Aerials 03-04-10 03:29 PM

ok, i'm guessing there's something for setting self.Health.Smooth = true? 'cuz that's when i get the issue, it doesn't do it with that set false. i was trying for colorSmooth anyway, and that works with true or false.

haste 03-04-10 03:32 PM

Quote:

Originally Posted by Aerials (Post 180591)
ok, i'm guessing there's something for setting self.Health.Smooth = true? 'cuz that's when i get the issue, it doesn't do it with that set false. i was trying for colorSmooth anyway, and that works with true or false.

Based on the smooth update page .Smooth is the variable used to toggle it.

Aerials 03-04-10 03:40 PM

ah, i see now. it's the smooth update plugin. maybe i should try updating the one i have :D i have 1.1 and the current is 1.3

Aerials 03-04-10 03:43 PM

yup, that was it. after updating that addon it works fine.

that's the problem with so many plugins.... hard to remember which i've updated recently, and annoying to update a lot of them.

nightcracker 03-04-10 04:55 PM

Am I the only one or do these unitframes look pretty damn sexy?

Aerials 03-04-10 05:43 PM

the ones i showed in the first post?


All times are GMT -6. The time now is 04:43 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI