Patch 5.3 PTR Note Regarding Nameplates
http://us.battle.net/wow/en/blog/913...e-3_22_2013#ui
Quote:
|
I believe they're referring to the fact that currently, the cast bar only shows up for the target, not for all units that are casting.
I wouldn't rely on any events being added for this considering nameplates are mostly handled C-side as it is and thus far we already need to use polling to find out when nameplates are created or their health bar colour changes. |
Well, currently any AddOn that adds castbars to non-target nameplates has a lot of work to do, monitoring combat log events, caching units in several different ways, etc.
Hopefully this will be one step closer to removing the currently necessary bloat of nameplate AddOns. |
I fear they will go the easy route and simply call the Show/Hide on the castbar and update it properly, all from the C-side, so nothing new regarding lua events or API I reckon, sadly. :(
|
Back in the old days of WoW this was already in place. But they removed it to only show the castbar on the current target. Good that they added it back in.
|
Oh, I wasn't aware of that Zork. Neat.
Hoping this is one step in the right direction for Nameplate AddOns :rolleyes: |
So you can indeed see cast bars on all mobs now. You can also see the name of the spell they're casting, I believe this is turned on by default.
Nameplate cast bars have 2 extra regions now: the first is the spell name, the second is a kind of shadow texture under the name. I can't see any events related to non-target cast bars; only a COMBAT_LOG_EVENT_UNFILTERED event, like before. |
That should provide a nice decrease in overhead for addons that provided a similar feature.
Good work Detective Haleth. |
I would love that Blizzard finally adds unit GUIDs to their nameplates. This would remove so much work addon authors have to do to fiddle out which nameplate is which unit.
|
Does that apply to players too? So in Arena you will see the castbars of all Arena Enemies?
|
Do you guys have an idea how to know if the unit is channeling. Up to now I just used UnitChannelInfo("target") as the castbar was only visible for the target. I use this to display remaining cast times on the castbar.
|
You can monitor the statusbar and see in which direction it fills. Should be accurate enough.
|
Since 5.3 is out next week, any changes from when the nameplate regions got changed, or still the same?
|
Tidy Plates beta has been getting updated for the 5.3 patch. Maybe a few things that are changing are in the authors notes.
|
The new spell name text and the background for it are the last 2 child regions (in that order) of the castbar of the nameplate. The spell name text is a FontString object type and the background is a Texture (Interface/COMMON/NameShadow). Both of them are by default anchored to the castbar.
|
So, if i get a handle on the castbar via frame:GetChildren(), i should be able to get to the 2 new regions via GetRegions().
Example: Code:
cb.texture, cb.border, cb.shield, cb.icon, cb.shadow, cb.name = cb:GetRegions() EDIT: my addon works correctly - i assume that not managing the two new regions will make the game automatically display the standard ones. |
umm...
Code:
local texture, overlay, shield, spellicon, spellname, shadow = castbar:GetRegions() |
It's name > background not background > name. But yes, if you do not address them, "default settings" are used.
Code:
local cbtexture, cbborder, cbshield, cbicon, cbname, cbbackg = cb:GetRegions() |
Quote:
|
Thanks, managed to style out the two new things.
|
Quote:
|
All times are GMT -6. The time now is 11:04 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI