10#ifndef CONTROL_CODES_H
11#define CONTROL_CODES_H
18 SCC_CONTROL_START = 0xE000,
19 SCC_CONTROL_END = 0xE1FF,
21 SCC_SPRITE_START = 0xE200,
22 SCC_SPRITE_END = SCC_SPRITE_START + 0xFF,
25 SCC_ENCODED = SCC_CONTROL_START,
68 SCC_UNITS_DAYS_OR_SECONDS,
69 SCC_UNITS_MONTHS_OR_MINUTES,
70 SCC_UNITS_YEARS_OR_PERIODS,
71 SCC_UNITS_YEARS_OR_MINUTES,
96 SCC_RAW_STRING_POINTER,
167 SCC_LESS_THAN = SCC_SPRITE_START + 0x3C,
168 SCC_GREATER_THAN = SCC_SPRITE_START + 0x3E,
169 SCC_UP_ARROW = SCC_SPRITE_START + 0xA0,
170 SCC_DOWN_ARROW = SCC_SPRITE_START + 0xAA,
171 SCC_CHECKMARK = SCC_SPRITE_START + 0xAC,
172 SCC_CROSS = SCC_SPRITE_START + 0xAD,
173 SCC_RIGHT_ARROW = SCC_SPRITE_START + 0xAF,
174 SCC_TRAIN = SCC_SPRITE_START + 0xB4,
175 SCC_LORRY = SCC_SPRITE_START + 0xB5,
176 SCC_BUS = SCC_SPRITE_START + 0xB6,
177 SCC_PLANE = SCC_SPRITE_START + 0xB7,
178 SCC_SHIP = SCC_SPRITE_START + 0xB8,
179 SCC_SUPERSCRIPT_M1 = SCC_SPRITE_START + 0xB9,
180 SCC_SMALL_UP_ARROW = SCC_SPRITE_START + 0xBC,
181 SCC_SMALL_DOWN_ARROW = SCC_SPRITE_START + 0xBD,
StringControlCode
List of string control codes used for string formatting, displaying, and by strgen to generate the la...
@ SCC_NEWGRF_PRINT_WORD_VOLUME_SHORT
9A 19: Read 2 bytes from the stack as short signed volume
@ SCC_NEWGRF_PRINT_DWORD_CURRENCY
8F: Read 4 bytes from the stack as currency
@ SCC_NEWGRF_PRINT_WORD_HEX
9A 07: Read 2 bytes from the stack and print it as hex
@ SCC_NEWGRF_PRINT_WORD_WEIGHT_SHORT
9A 1A: Read 2 bytes from the stack as short unsigned weight
@ SCC_NEWGRF_ROTATE_TOP_4_WORDS
86: Rotate the top 4 words of the stack (W4 W1 W2 W3)
@ SCC_TINYFONT
Switch to small font.
@ SCC_NEWGRF_PRINT_DWORD_DATE_LONG
9A 16: Read 4 bytes from the stack as base 0 date
@ SCC_NORMALFONT
Switch to normal size font.
@ SCC_NEWGRF_PRINT_DWORD_HEX
9A 08: Read 4 bytes from the stack and print it as hex
@ SCC_NEWGRF_PRINT_WORD_DATE_SHORT
83: Read 2 bytes from the stack as base 1920 date
@ SCC_BIGFONT
Switch to large font.
@ SCC_NEWGRF_PRINT_BYTE_HEX
9A 06: Read 1 byte from the stack and print it as hex
@ SCC_NEWGRF_PRINT_WORD_UNSIGNED
7E: Read 2 bytes from the stack as unsigned value
@ SCC_NEWGRF_PRINT_BYTE_SIGNED
7D: Read 1 byte from the stack as signed value
@ SCC_NEWGRF_PRINT_WORD_CARGO_NAME
9A 1E: Read 2 bytes from the stack as cargo name
@ SCC_NEWGRF_PRINT_DWORD_SIGNED
7B: Read 4 bytes from the stack
@ SCC_NEWGRF_STRINL
Inline another string at the current position, StringID is encoded in the string.
@ SCC_NEWGRF_PRINT_WORD_CARGO_SHORT
9A 1C: Read 2 + 2 bytes from the stack as cargo type (translated) and unsigned cargo amount
@ SCC_NEWGRF_PRINT_WORD_STATION_NAME
9A 0C: Read 2 bytes from the stack as station name
@ SCC_NEWGRF_PRINT_WORD_DATE_LONG
82: Read 2 bytes from the stack as base 1920 date
@ SCC_NEWGRF_FIRST
The next variables are part of a NewGRF subsystem for creating text strings.
@ SCC_NEWGRF_PRINT_WORD_SIGNED
7C: Read 2 bytes from the stack as signed value
@ SCC_MONOFONT
Switch to monospaced font.
@ SCC_NEWGRF_PRINT_WORD_POWER
9A 18: Read 2 bytes from the stack as unsigned power
@ SCC_NEWGRF_PUSH_WORD
9A 03: Pushes 2 bytes onto the stack
@ SCC_NEWGRF_PRINT_WORD_STRING_ID
81: Read 2 bytes from the stack as String ID
@ SCC_NEWGRF_PRINT_WORD_VOLUME_LONG
87: Read 2 bytes from the stack as long signed volume
@ SCC_NEWGRF_DISCARD_WORD
85: Discard the next two bytes
@ SCC_NEWGRF_PRINT_DWORD_FORCE
9A 21: Read 4 bytes from the stack as unsigned force
@ SCC_NEWGRF_PRINT_WORD_CARGO_TINY
9A 1D: Read 2 + 2 bytes from the stack as cargo type (translated) and unsigned cargo amount
@ SCC_NEWGRF_PRINT_QWORD_HEX
9A 0B: Read 8 bytes from the stack and print it as hex
@ SCC_NEWGRF_PRINT_WORD_CARGO_LONG
9A 1B: Read 2 + 2 bytes from the stack as cargo type (translated) and unsigned cargo amount
@ SCC_NEWGRF_PRINT_WORD_SPEED
84: Read 2 bytes from the stack as signed speed
@ SCC_NEWGRF_PRINT_DWORD_DATE_SHORT
9A 17: Read 4 bytes from the stack as base 0 date
@ SCC_NEWGRF_PRINT_WORD_WEIGHT_LONG
9A 0D: Read 2 bytes from the stack as long unsigned weight
@ SCC_NEWGRF_PRINT_QWORD_CURRENCY
9A 01: Read 8 bytes from the stack as currency