Thread Tools Display Modes
Prev Previous Post   Next Post Next
01/11/22, 09:33 PM   #1
marcjordan
AddOn Author - Click to view addons
Join Date: Sep 2020
Posts: 14
Question Function to return text for a given global?

When you get an EVENT_CURRENCY_UPDATE callback you get a parameter called CurrencyChangeReason int value. Is there an easy way to convert that int value to the text of the global so I can debug print it?

I could do an if reason == CURRENCY_CHANGE_REASON_CASH_ON_DELIVERY and then explicitly set the text but that's kind of horrible and not resilient to global changes.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Function to return text for a given global?


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