# control_codes.h

Go to the documentation of this file.

    00001 /* $Id$ */
    00002
    00003 /*
    00004  * This file is part of OpenTTD.
    00005  * 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.
    00006  * 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.
    00007  * 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/>.
    00008  */
    00009
    00012 #ifndef CONTROL_CODES_H
    00013 #define CONTROL_CODES_H
    00014
    00019 enum StringControlCode {
    00020   SCC_CONTROL_START = 0xE000,
    00021   SCC_CONTROL_END   = 0xE1FF,
    00022
    00023   SCC_SPRITE_START  = 0xE200,
    00024   SCC_SPRITE_END    = SCC_SPRITE_START + 0xFF,
    00025
    00026   /* Display control codes */
    00027   SCC_SETX = SCC_CONTROL_START,
    00028   SCC_SETXY,
    00029   SCC_TINYFONT,
    00030   SCC_BIGFONT,
    00031
    00032   /* Formatting control codes */
    00033   SCC_REVISION,
    00034   SCC_COMPANY_NUM,
    00035   SCC_STATION_FEATURES,
    00036   SCC_INDUSTRY_NAME,
    00037   SCC_WAYPOINT_NAME,
    00038   SCC_STATION_NAME,
    00039   SCC_TOWN_NAME,
    00040   SCC_GROUP_NAME,
    00041   SCC_VEHICLE_NAME,
    00042   SCC_SIGN_NAME,
    00043   SCC_COMPANY_NAME,
    00044   SCC_PRESIDENT_NAME,
    00045   SCC_ENGINE_NAME,
    00046
    00047   SCC_CURRENCY_COMPACT,
    00048   SCC_CURRENCY,
    00049
    00050   SCC_CARGO,
    00051   SCC_CARGO_SHORT,
    00052   SCC_POWER,
    00053   SCC_VOLUME,
    00054   SCC_VOLUME_SHORT,
    00055   SCC_WEIGHT,
    00056   SCC_WEIGHT_SHORT,
    00057   SCC_FORCE,
    00058   SCC_VELOCITY,
    00059
    00060   SCC_DATE_TINY,
    00061   SCC_DATE_SHORT,
    00062   SCC_DATE_LONG,
    00063   SCC_DATE_ISO,
    00064
    00065   SCC_STRING1,
    00066   SCC_STRING2,
    00067   SCC_STRING3,
    00068   SCC_STRING4,
    00069   SCC_STRING5,
    00070
    00071   SCC_STRING,
    00072   SCC_COMMA,
    00073   SCC_NUM,
    00074   SCC_ZEROFILL_NUM,
    00075   SCC_HEX,
    00076   SCC_BYTES,
    00077
    00078   SCC_STRING_ID,
    00079   SCC_RAW_STRING_POINTER,
    00080   SCC_PLURAL_LIST,
    00081   SCC_GENDER_LIST,
    00082   SCC_GENDER_INDEX,
    00083   SCC_ARG_INDEX,
    00084   SCC_SETCASE,
    00085   SCC_SWITCH_CASE,
    00086
    00087   /* Colour codes */
    00088   SCC_BLUE,
    00089   SCC_SILVER,
    00090   SCC_GOLD,
    00091   SCC_RED,
    00092   SCC_PURPLE,
    00093   SCC_LTBROWN,
    00094   SCC_ORANGE,
    00095   SCC_GREEN,
    00096   SCC_YELLOW,
    00097   SCC_DKGREEN,
    00098   SCC_CREAM,
    00099   SCC_BROWN,
    00100   SCC_WHITE,
    00101   SCC_LTBLUE,
    00102   SCC_GRAY,
    00103   SCC_DKBLUE,
    00104   SCC_BLACK,
    00105   SCC_PREVIOUS_COLOUR,
    00106
    00111   SCC_NEWGRF_FIRST,
    00112   SCC_NEWGRF_PRINT_DWORD = SCC_NEWGRF_FIRST,
    00113   SCC_NEWGRF_PRINT_SIGNED_WORD,
    00114   SCC_NEWGRF_PRINT_SIGNED_BYTE,
    00115   SCC_NEWGRF_PRINT_UNSIGNED_WORD,
    00116   SCC_NEWGRF_PRINT_DWORD_CURRENCY,
    00117   SCC_NEWGRF_PRINT_STRING_ID,
    00118   SCC_NEWGRF_PRINT_DATE,
    00119   SCC_NEWGRF_PRINT_MONTH_YEAR,
    00120   SCC_NEWGRF_PRINT_WORD_SPEED,
    00121   SCC_NEWGRF_PRINT_WORD_LITRES,
    00122   SCC_NEWGRF_PRINT_QWORD_CURRENCY,
    00123   SCC_NEWGRF_PRINT_HEX_BYTE,
    00124   SCC_NEWGRF_PRINT_HEX_WORD,
    00125   SCC_NEWGRF_PRINT_HEX_DWORD,
    00126   SCC_NEWGRF_PUSH_WORD,
    00127   SCC_NEWGRF_UNPRINT,
    00128   SCC_NEWGRF_DISCARD_WORD,
    00129   SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00130   SCC_NEWGRF_LAST = SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00131
    00132   /* Special printable symbols.
    00133    * These are mapped to the original glyphs */
    00134   SCC_LESSTHAN       = SCC_SPRITE_START + 0x3C,
    00135   SCC_GREATERTHAN    = SCC_SPRITE_START + 0x3E,
    00136   SCC_UPARROW        = SCC_SPRITE_START + 0xA0,
    00137   SCC_DOWNARROW      = SCC_SPRITE_START + 0xAA,
    00138   SCC_CHECKMARK      = SCC_SPRITE_START + 0xAC,
    00139   SCC_CROSS          = SCC_SPRITE_START + 0xAD,
    00140   SCC_RIGHTARROW     = SCC_SPRITE_START + 0xAF,
    00141   SCC_TRAIN          = SCC_SPRITE_START + 0xB4,
    00142   SCC_LORRY          = SCC_SPRITE_START + 0xB5,
    00143   SCC_BUS            = SCC_SPRITE_START + 0xB6,
    00144   SCC_PLANE          = SCC_SPRITE_START + 0xB7,
    00145   SCC_SHIP           = SCC_SPRITE_START + 0xB8,
    00146   SCC_SUPERSCRIPT_M1 = SCC_SPRITE_START + 0xB9,
    00147   SCC_SMALLUPARROW   = SCC_SPRITE_START + 0xBC,
    00148   SCC_SMALLDOWNARROW = SCC_SPRITE_START + 0xBD,
    00149 };
    00150
    00151 #endif /* CONTROL_CODES_H */