View Single Post
05/29/23, 06:00 PM   #7
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 661
I really recommend against mixing formats like that. Anything can be stored at a number like 10000 or 1000 anywhere you want. For a table for LibAddonMenu, in the saved variables, anything. When displaying the number then use the zo_xxx function. Otherwise you will be going back and forth all over the place. For example comparing 10,000 vs 10000 and so on.

Another thing though is if the value is not going to change then use a constant

local YOURMODNAME_VALUE_TEN_THOUSAND = 10000
Code:
choices = {"0", "100", "1,000", ZO_LocalizeDecimalNumber(YOURMODNAME_VALUE_TEN_THOUSAND) },
choicesValues= {"0", "100", "1,000", YOURMODNAME_VALUE_TEN_THOUSAND },

Last edited by Sharlikran : 05/29/23 at 06:04 PM.
  Reply With Quote