Adding TRP3 'full names' to UI target frame
Title says it all, I want to add TRP3's last names (when applicable) to my target frame's name, however, I'm not entierly sure how to do this.
I started by simply trying to replace the default name with the one supplied by the TRP chatframe functions, but it just shows blank, no errors, just no name either. lua Code:
Looking in register_main.lua I fine the mouseover function for tooltips: lua Code:
lua Code:
From this, I can gather feeding a unit into "TRP3_API.utils.str.getUnitID()" should get me the UnitID I require for the next function "TRP3_API.chat.getFullnameForUnitUsingChatMethod(UnitID)" However, upon doing this, I get no character name. I also get no errors, so I know i'm calling the right functions with the right information, I'm just not getting back anything. I found another function aswell lua Code:
I'm utterly confused by all of this, tbh :S |
With more tinkering, I've come to this function for my tag
lua Code:
However, it misbehaves. If I target someone with a TRP profile, it works 100% as expected, however, whenever I target someone without a profile, or an NPC, it doesn't display a name. The "if UnitID == nil" /should/ work around this issue, but for some reason it does now, and i'm confused as to why. |
Lua Code:
|
Thank you! <3 Much love
|
All times are GMT -6. The time now is 06:44 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI