Forum

> > CS2D > Scripts > Seperating thousands in a menu
Forums overviewCS2D overview Scripts overviewLog in to reply

English Seperating thousands in a menu

4 replies
To the start Previous 1 Next To the start

old Seperating thousands in a menu

Alistaire
User Off Offline

Quote
I've been using this nice script to seperate thousands in monetary values with comma's, but it seems it breaks all menu's, cause their buttons are also seperated with commas.

Is there any conventional way, other than with comma's or spaces, to seperate thousands that won't break stuff horribly?

old Re: Seperating thousands in a menu

Avo
User Off Offline

Quote
I don't think so. We define string with menu that used by CS2D, so "," cannot be locked with "\" (yes, with "\", not with "/"), because "\" locks another char in lua and to change it you would have to probably edit game's source. Don't know if I'm right, but user DC would make us possible to use commas in menus by adding something like "@C". You have to use another char like space or dot actually.

(in Poland, we separate big numbers like 1000000 with dots - 1.000.000 and use comma for deciaml fractions - "1,5" is 1.5; just a trivia).

old Re: Seperating thousands in a menu

Flacko
User Off Offline

Quote
I recall DC saying that he'd add an option to escape commas and other stuff in the menu() function.
I think the backslash character would be better for consistency.
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview