Mana in plates? Class colored plates?

1,356 views
Skip to first unread message

Valeriy Sokolov

unread,
Sep 19, 2010, 6:56:46 AM9/19/10
to Tidy Plates
hi is there any way (including simple coding) to show mana/resource
bar under health bar? rigth now i use nameplates to see opponent stat
without having to look at his default unitframe, and its ok for PVE,
but for PVP i wonder enemy mana as much as his HP so it would be great
to see both in one place (nameplate ofc)

also i wonder is there an option to color nameplate according to
target class, not his health/threat (extremely useful in BG)

tnx for any advises :)

Dan aka Binbwen

unread,
Sep 19, 2010, 8:31:04 AM9/19/10
to Tidy Plates
Mana/Power:
It's possible to directly check the mana of an opponent in Arenas, and
it's possible to grab the data for your current target, but for
battleground/instance/world there's no way to access an arbitrary
unit. So, it would be usable in certain situations.

http://www.wowwiki.com/API_UnitPower
http://www.wowwiki.com/UnitId

If you want to try and tackle this feature, I'd start by looking at
the Selection Box widget in the functions.lua file of your favorite
theme; You could set up a statusbar which would only display for your
current target, and return the mana via UnitPower("target").

This is probably something that I will work on in the next few months,
if someone else doesn't beat me to it.

Coloring:
Tidy Plates passes through the original bar color of a player
nameplate. If you've enabled "Class Colored Nameplates" in the
Blizzard Interface, you should be seeing the class colors
automatically. This can be altered by the particular theme, however.
Which theme are you running?

Valeriy Sokolov

unread,
Sep 19, 2010, 9:16:31 AM9/19/10
to Tidy Plates
first - thanx for quik response

On Sep 19, 3:31 pm, Dan aka Binbwen <binb...@gmail.com> wrote:
> Mana/Power:
> It's possible to directly check the mana of an opponent in Arenas, and
> it's possible to grab the data for your current target, but for
> battleground/instance/world there's no way to access an arbitrary
> unit.  So, it would be usable in certain situations.
>
> http://www.wowwiki.com/API_UnitPowerhttp://www.wowwiki.com/UnitId

tnx for tips, first i was turning around "unit" object, that has name,
level, health but seems no equivalent to power/mana, following your
lead i was able to convert current health bar into mana bar (just to
test) with following code (TidyPlatesCore.lua: 127 line)

bars.healthbar:SetMinMaxValues(0, UnitPowerMax("target"))
bars.healthbar:SetValue(UnitPower("target"))

but haven't figured out how to create separate bar for this (duplicate
health bar for start). any tips? :)

anyway the situation you mention above (all units in arena and current
target) is more than enough. btw (im not familisr with addon
development so may be wrong) AFAIR you able to access unit info if
some one of your party/raid target or focus that unit? in this case
for it is theoretically possible for BG to see about 50% of opponents
info? (this may lead to CPU melt i know)

> If you want to try and tackle this feature, I'd start by looking at
> the Selection Box widget in the functions.lua file of your favorite
> theme; You could set up a statusbar which would only display for your
> current target, and return the mana via UnitPower("target").
>
> This is probably something that I will work on in the next few months,
> if someone else doesn't beat me to it.



> Coloring:
> Tidy Plates passes through the original bar color of a player
> nameplate.  If you've enabled "Class Colored Nameplates" in the
> Blizzard Interface, you should be seeing the class colors
> automatically.  This can be altered by the particular theme, however.
> Which theme are you running?

neon, i confess i didn't test coloring on anything exept mobs in
starting area, but after i enable "class color in nameplates" they
were still colored by health percentage. but if you say it should be
fine i assume it is. (im on PTR and all data on PTR was wiped today so
we all start from the beginnig)

Valeriy Sokolov

unread,
Sep 19, 2010, 10:16:49 AM9/19/10
to Tidy Plates
> If you want to try and tackle this feature, I'd start by looking at
> the Selection Box widget in the functions.lua file of your favorite
> theme; You could set up a statusbar which would only display for your
> current target, and return the mana via UnitPower("target").

almost there, i've trying to duplicate one of existing widgets

Valeriy Sokolov

unread,
Sep 19, 2010, 11:57:04 AM9/19/10
to Tidy Plates
tnx for your advises, i've managed to copy/modify threat meter so it
display power for current target
Reply all
Reply to author
Forward
0 new messages