Cant figure out nameplate misalignment issue
rbgdevx opened this issue ยท 3 comments
WoW version
Retail
Describe the feature you'd like to be implemented
I currently have a weakaura where i align icons to the to nameplates and i noticed it aligns directly to the healthbar, so if i do "LEFT" and "RIGHT" respectively the icon starts immediately where the healthbar ends. However if i choose those same settings with NameplateCooldowns it always has a gap and never actually starts where the healthbar begins or ends and can't figure out why or how anchoring works exactly to get it to match
Like ideally without having to do X and or Y offsets my thought is it should align to the nameplate (healthbar) exactly but it never does and just curious whats going on, for context im a developer. i know you're using the nameplate as the anchor so maybe nameplate is more than just the healthbar or something? not sure.
Update: I did figure out what i was looking for and it appears that WeakAuras does indeed attach to
frame.UnitFrame.healthbar
which is why the alignment hugs the bar itself.
Hello,
You're right - nameplate frame is bigger than actually visible health bar. Unfortunately many of nameplate addons 1) aggressively modify (resize, move) nameplate's internal frames and 2) addon's healthbar size is different from Blizz' internal healthbar. Thus there isn't reliable way to attach icons to healthbar.
For example, I use ThreatPlates addon. My another addon NameplateAuras supports attachment directly to Blizz' healthbars, but I had to implement a workaround for ThreatPlates.
Attachment to nameplate frame:
Attachment to healthbar:
Attachment to TP healthbar (correct):