Thread Tools Display Modes
04-29-11, 08:45 PM   #1
dafft
A Murloc Raider
Join Date: Apr 2011
Posts: 8
Post LF Nameplates Modifier update

Shadowed's Nameplate addon - http://www.wowinterface.com/download...eModifier.html - was for me one of the cleanest nameplate addons.

I would really appreciate if an author could look at the coding and point me in the direction to get it working.
  Reply With Quote
04-30-11, 12:07 AM   #2
acapela
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 241
Originally Posted by dafft View Post
Shadowed's Nameplate addon - http://www.wowinterface.com/download...eModifier.html - was for me one of the cleanest nameplate addons.

I would really appreciate if an author could look at the coding and point me in the direction to get it working.
a quick tutorial on the main issue(s).

not familiar with the specific features of this addon, but the main thing between WoW 4.0 and 4.1 was that the nameplate "assembly" changed. if you go back to WoW 3.X versus WoW 4.1, you also have to include the way Blizzard controls nameplate "overlap" (i don't know if NameplateModifier does anything with that; my guess is that it does not).

that means that all the liitle UI widgets that comprise a nameplate changed in organization. nameplates contain a variety of elements, including a bunch of texture/text regions, and two "children": health bar and cast bar.

the change that occurred relates specifically to the cast bar: several texture elements that were logically associated with the cast bar but (historically) associated with the nameplate proper moved, physically, from the nameplate proper to the cast bar itself.

this changed the manifest of return values from the Frame:GetRegions() API call that every nameplate addon has to do to identify various nameplate elements for reskinning. if this manifest changes, it generally results in major addon breakage.

for WoW 4.1, Aloft's code looks roughly like this:

Code:
local nativeGlowRegion, overlayRegion, highlightRegion, nameTextRegion, levelTextRegion, bossIconRegion, raidIconRegion, stateIconRegion = nameplateFrame:GetRegions()
local healthBar, castBar = nameplateFrame:GetChildren()
local castBarRegion, castBarOverlayRegion, castBarShieldRegion, spellIconRegion = castBar:GetRegions()
(the healthBar is nothing "special", just a standard StatusBar... a Blizzard API widget, documented here, along with everything else; in WoW 4.1, the castBar has become more complicated.)

ultimately, there will be some code like this somewhere in NameplateModifier. it may be as simple as just updating the code in place to reflect the new organization.

hope that helps.
__________________
Retired author/maintainer of Aloft (the nameplate addon)
http://www.wowinterface.com/download...AloftBeta.html
-----
Zippy said it best: "All life is a BLUR of Republicans and Meat!"
  Reply With Quote
04-30-11, 12:53 AM   #3
Lostasd
A Kobold Labourer
Join Date: Apr 2011
Posts: 1
Bump

I cant play whitout this mod agh how can i display health percent in The default Blizzard nameplates? nothing more...
  Reply With Quote
04-30-11, 03:01 AM   #4
dafft
A Murloc Raider
Join Date: Apr 2011
Posts: 8
Acepela,

Thank you for your response, I tried having a bash at it to find the changes you mentioned but, honestly, I got lost.

I found several "cast" mentioned & I understand probably 10% of it
  Reply With Quote
04-30-11, 04:10 AM   #5
Sylen
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 50
Open Nameplate.lua the code your're looking for is in line 74.
  Reply With Quote
04-30-11, 04:34 AM   #6
dafft
A Murloc Raider
Join Date: Apr 2011
Posts: 8
since everything says Nameplates & has cast in it, would I have to create a castbar function?
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » LF Nameplates Modifier update


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off