ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   Wish List (https://www.esoui.com/forums/forumdisplay.php?f=177)
-   -   [outdated] Function GetCurrentCharacterName() (or WhoAmI() for short) (https://www.esoui.com/forums/showthread.php?t=7012)

manavortex 04/30/17 07:22 AM

[outdated] Function GetCurrentCharacterName() (or WhoAmI() for short)
 
By now I know that I can just zo_strFormat(GetUnitName('player')), but I've coded a lot of workarounds back when I didn't, and it's still two function calls instead of one. I bet you're holding that somewhere in the cache anyway?
Could you maybe give us a direct access to that, without having to manually shove it into the strformat?

Also, WhoAmI() would be a nice way to de-spaghetti long code! :)

sirinsidiator 04/30/17 10:29 AM

I think you are confusing it with GetRawUnitName. GetUnitName("player") already returns the name without formatting characters, so you do not need to use zo_strformat.
p.s. just because code is long doesn't automatically mean it's spagetthi code. ;)

manavortex 05/08/17 01:01 AM



why are we whispering?


All times are GMT -6. The time now is 05:11 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI