Thread Tools Display Modes
04/30/17, 07:22 AM   #1
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138
[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!
 
04/30/17, 10:29 AM   #2
sirinsidiator
 
sirinsidiator's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 1,566
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.
 
05/08/17, 01:01 AM   #3
manavortex
 
manavortex's Avatar
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 138


why are we whispering?
 

ESOUI » Developer Discussions » Wish List » [outdated] Function GetCurrentCharacterName() (or WhoAmI() for short)

Thread Tools
Display Modes

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