OpenTTD

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files

- File List
- Globals

control_codes.h
Go to the documentation of this file.
1 /* $Id: control_codes.h 26244 2014-01-12 18:01:33Z frosch $ */
2
3 /*
4 * This file is part of OpenTTD.
5 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8 */
9
12 #ifndef CONTROL_CODES_H
13 #define CONTROL_CODES_H
14
19 enum StringControlCode {
20 SCC_CONTROL_START = 0xE000,
21 SCC_CONTROL_END = 0xE1FF,
22
23 SCC_SPRITE_START = 0xE200,
24 SCC_SPRITE_END = SCC_SPRITE_START + 0xFF,
25
26 /* This must be the first entry. It's encoded in strings that are saved. */
27 SCC_ENCODED = SCC_CONTROL_START,
28
29 /* Display control codes */
30 SCC_TINYFONT,
31 SCC_BIGFONT,
32
33 /* Formatting control codes */
34 SCC_REVISION,
35 SCC_COMPANY_NUM,
36 SCC_STATION_FEATURES,
37 SCC_INDUSTRY_NAME,
38 SCC_WAYPOINT_NAME,
39 SCC_STATION_NAME,
40 SCC_DEPOT_NAME,
41 SCC_TOWN_NAME,
42 SCC_GROUP_NAME,
43 SCC_VEHICLE_NAME,
44 SCC_SIGN_NAME,
45 SCC_COMPANY_NAME,
46 SCC_PRESIDENT_NAME,
47 SCC_ENGINE_NAME,
48
49 SCC_CURRENCY_SHORT,
50 SCC_CURRENCY_LONG,
51
52 SCC_CARGO_LONG,
53 SCC_CARGO_SHORT,
54 SCC_CARGO_TINY,
55 SCC_CARGO_LIST,
56 SCC_POWER,
57 SCC_VOLUME_LONG,
58 SCC_VOLUME_SHORT,
59 SCC_WEIGHT_LONG,
60 SCC_WEIGHT_SHORT,
61 SCC_FORCE,
62 SCC_VELOCITY,
63 SCC_HEIGHT,
64
65 SCC_DATE_TINY,
66 SCC_DATE_SHORT,
67 SCC_DATE_LONG,
68 SCC_DATE_ISO,
69
70 /* Must be consecutive */
71 SCC_STRING1,
72 SCC_STRING2,
73 SCC_STRING3,
74 SCC_STRING4,
75 SCC_STRING5,
76 SCC_STRING6,
77 SCC_STRING7,
78
79
80 SCC_STRING,
81 SCC_COMMA,
82 SCC_DECIMAL,
83 SCC_NUM,
84 SCC_ZEROFILL_NUM,
85 SCC_HEX,
86 SCC_BYTES,
87
88 SCC_RAW_STRING_POINTER,
89 SCC_PLURAL_LIST,
90 SCC_GENDER_LIST,
91 SCC_GENDER_INDEX,
92 SCC_ARG_INDEX,
93 SCC_SET_CASE,
94 SCC_SWITCH_CASE,
95
96 /* Colour codes */
97 SCC_BLUE,
98 SCC_SILVER,
99 SCC_GOLD,
100 SCC_RED,
101 SCC_PURPLE,
102 SCC_LTBROWN,
103 SCC_ORANGE,
104 SCC_GREEN,
105 SCC_YELLOW,
106 SCC_DKGREEN,
107 SCC_CREAM,
108 SCC_BROWN,
109 SCC_WHITE,
110 SCC_LTBLUE,
111 SCC_GRAY,
112 SCC_DKBLUE,
113 SCC_BLACK,
114 SCC_PREVIOUS_COLOUR,
115
120 SCC_NEWGRF_FIRST,
121 SCC_NEWGRF_PRINT_DWORD_SIGNED = SCC_NEWGRF_FIRST,
122 SCC_NEWGRF_PRINT_WORD_SIGNED,
123 SCC_NEWGRF_PRINT_BYTE_SIGNED,
124 SCC_NEWGRF_PRINT_WORD_UNSIGNED,
125 SCC_NEWGRF_PRINT_DWORD_CURRENCY,
126 SCC_NEWGRF_PRINT_WORD_STRING_ID,
127 SCC_NEWGRF_PRINT_WORD_DATE_LONG,
128 SCC_NEWGRF_PRINT_WORD_DATE_SHORT,
129 SCC_NEWGRF_PRINT_WORD_SPEED,
130 SCC_NEWGRF_PRINT_WORD_VOLUME_LONG,
131 SCC_NEWGRF_PRINT_WORD_WEIGHT_LONG,
132 SCC_NEWGRF_PRINT_WORD_STATION_NAME,
133 SCC_NEWGRF_PRINT_QWORD_CURRENCY,
134 SCC_NEWGRF_PRINT_BYTE_HEX,
135 SCC_NEWGRF_PRINT_WORD_HEX,
136 SCC_NEWGRF_PRINT_DWORD_HEX,
137 SCC_NEWGRF_PRINT_QWORD_HEX,
138 SCC_NEWGRF_PRINT_DWORD_DATE_LONG,
139 SCC_NEWGRF_PRINT_DWORD_DATE_SHORT,
140 SCC_NEWGRF_PRINT_WORD_POWER,
141 SCC_NEWGRF_PRINT_WORD_VOLUME_SHORT,
142 SCC_NEWGRF_PRINT_WORD_WEIGHT_SHORT,
143 SCC_NEWGRF_PRINT_WORD_CARGO_LONG,
144 SCC_NEWGRF_PRINT_WORD_CARGO_SHORT,
145 SCC_NEWGRF_PRINT_WORD_CARGO_TINY,
146 SCC_NEWGRF_PUSH_WORD,
147 SCC_NEWGRF_UNPRINT,
148 SCC_NEWGRF_DISCARD_WORD,
149 SCC_NEWGRF_ROTATE_TOP_4_WORDS,
150 SCC_NEWGRF_LAST = SCC_NEWGRF_ROTATE_TOP_4_WORDS,
151
152 SCC_NEWGRF_STRINL,
153
154 /* Special printable symbols.
155 * These are mapped to the original glyphs */
156 SCC_LESS_THAN = SCC_SPRITE_START + 0x3C,
157 SCC_GREATER_THAN = SCC_SPRITE_START + 0x3E,
158 SCC_UP_ARROW = SCC_SPRITE_START + 0xA0,
159 SCC_DOWN_ARROW = SCC_SPRITE_START + 0xAA,
160 SCC_CHECKMARK = SCC_SPRITE_START + 0xAC,
161 SCC_CROSS = SCC_SPRITE_START + 0xAD,
162 SCC_RIGHT_ARROW = SCC_SPRITE_START + 0xAF,
163 SCC_TRAIN = SCC_SPRITE_START + 0xB4,
164 SCC_LORRY = SCC_SPRITE_START + 0xB5,
165 SCC_BUS = SCC_SPRITE_START + 0xB6,
166 SCC_PLANE = SCC_SPRITE_START + 0xB7,
167 SCC_SHIP = SCC_SPRITE_START + 0xB8,
168 SCC_SUPERSCRIPT_M1 = SCC_SPRITE_START + 0xB9,
169 SCC_SMALL_UP_ARROW = SCC_SPRITE_START + 0xBC,
170 SCC_SMALL_DOWN_ARROW = SCC_SPRITE_START + 0xBD,
171 };
172
173 #endif /* CONTROL_CODES_H */