Author Topic: WAY TO GET SELECTED CURRENCY IN OPTIONS?  (Read 1384 times)

0 Members and 1 Guest are viewing this topic.

November 26, 2017, 05:28:50 AM
Read 1384 times

Pyuu

  • *
  • Information
  • Newbie
  • Posts: 1
    • View Profile
I see GameData's GetCurrency(string s) and Currencies table, but I don't see any method to get the selected currency.
I need this so I can convert option parameters to the selected currency unit so math doesn't break when people switch it.

February 25, 2018, 04:26:01 AM
Reply #1

Crystalmir

  • *
  • Information
  • Newbie
  • Posts: 1
    • View Profile
Options.Currency seems to return the current currency of the user. The class is static so you don't need an instance. Wheter the GUI is currently shown to the user or not doesn't matter and you won't be able to hook to an event when it chgange so you have to check once in a while.