12 #ifndef STRINGS_TYPE_H 13 #define STRINGS_TYPE_H 33 TEXT_TAB_INDUSTRY = 9,
34 TEXT_TAB_STATION = 12,
35 TEXT_TAB_SPECIAL = 14,
36 TEXT_TAB_OLD_CUSTOM = 15,
37 TEXT_TAB_VEHICLE = 16,
39 TEXT_TAB_OLD_NEWGRF = 26,
60 SPECSTR_TOWNNAME_START = 0x20C0,
61 SPECSTR_TOWNNAME_ENGLISH = SPECSTR_TOWNNAME_START,
62 SPECSTR_TOWNNAME_FRENCH,
63 SPECSTR_TOWNNAME_GERMAN,
64 SPECSTR_TOWNNAME_AMERICAN,
65 SPECSTR_TOWNNAME_LATIN,
66 SPECSTR_TOWNNAME_SILLY,
67 SPECSTR_TOWNNAME_SWEDISH,
68 SPECSTR_TOWNNAME_DUTCH,
69 SPECSTR_TOWNNAME_FINNISH,
70 SPECSTR_TOWNNAME_POLISH,
71 SPECSTR_TOWNNAME_SLOVAK,
72 SPECSTR_TOWNNAME_NORWEGIAN,
73 SPECSTR_TOWNNAME_HUNGARIAN,
74 SPECSTR_TOWNNAME_AUSTRIAN,
75 SPECSTR_TOWNNAME_ROMANIAN,
76 SPECSTR_TOWNNAME_CZECH,
77 SPECSTR_TOWNNAME_SWISS,
78 SPECSTR_TOWNNAME_DANISH,
79 SPECSTR_TOWNNAME_TURKISH,
80 SPECSTR_TOWNNAME_ITALIAN,
81 SPECSTR_TOWNNAME_CATALAN,
82 SPECSTR_TOWNNAME_LAST = SPECSTR_TOWNNAME_CATALAN,
85 SPECSTR_COMPANY_NAME_START = 0x70EA,
86 SPECSTR_COMPANY_NAME_LAST = SPECSTR_COMPANY_NAME_START + SPECSTR_TOWNNAME_LAST - SPECSTR_TOWNNAME_START,
88 SPECSTR_SILLY_NAME = 0x70E5,
89 SPECSTR_ANDCO_NAME = 0x70E6,
90 SPECSTR_PRESIDENT_NAME = 0x70E7,
93 SPECSTR_LANGUAGE_START = 0x7100,
94 SPECSTR_LANGUAGE_END = SPECSTR_LANGUAGE_START +
MAX_LANG - 1,
97 SPECSTR_RESOLUTION_START = SPECSTR_LANGUAGE_END + 1,
98 SPECSTR_RESOLUTION_END = SPECSTR_RESOLUTION_START + 0x1F,
StringTab
StringTabs to group StringIDs.
static const int MAX_CHAR_LENGTH
Max. length of UTF-8 encoded unicode character.
static const uint TAB_SIZE_NEWGRF
Number of strings for NewGRFs.
static const uint TAB_SIZE
Number of strings per StringTab.
static const uint TAB_SIZE_GAMESCRIPT
Number of strings for GameScripts.
SpecialStrings
Special string constants.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
Text is written left-to-right by default.
Start of GameScript supplied strings.
static const uint MAX_LANG
Maximum number of languages supported by the game, and the NewGRF specs.
TextDirection
Directions a text can go to.
static const uint TAB_SIZE_BITS
Number of bits for the StringIndex within a StringTab.
Start of NewGRF supplied strings.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
Text is written right-to-left by default.