Forum

> > CS2D > Scripts > Seperating thousands in a menu
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Seperating thousands in a menu

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Seperating thousands in a menu

Alistaire
User Off Offline

Zitieren
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?

alt Re: Seperating thousands in a menu

Avo
User Off Offline

Zitieren
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).

alt Re: Seperating thousands in a menu

Flacko
User Off Offline

Zitieren
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.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht