# 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   /* This must be the first entry. It's encoded in strings that are saved. */
    00027   SCC_ENCODED = SCC_CONTROL_START,
    00028
    00029   /* Display control codes */
    00030   SCC_SETX,
    00031   SCC_SETXY,
    00032   SCC_TINYFONT,
    00033   SCC_BIGFONT,
    00034
    00035   /* Formatting control codes */
    00036   SCC_REVISION,
    00037   SCC_COMPANY_NUM,
    00038   SCC_STATION_FEATURES,
    00039   SCC_INDUSTRY_NAME,
    00040   SCC_WAYPOINT_NAME,
    00041   SCC_STATION_NAME,
    00042   SCC_DEPOT_NAME,
    00043   SCC_TOWN_NAME,
    00044   SCC_GROUP_NAME,
    00045   SCC_VEHICLE_NAME,
    00046   SCC_SIGN_NAME,
    00047   SCC_COMPANY_NAME,
    00048   SCC_PRESIDENT_NAME,
    00049   SCC_ENGINE_NAME,
    00050
    00051   SCC_CURRENCY_SHORT,
    00052   SCC_CURRENCY_LONG,
    00053
    00054   SCC_CARGO_LONG,
    00055   SCC_CARGO_SHORT,
    00056   SCC_CARGO_TINY,
    00057   SCC_CARGO_LIST,
    00058   SCC_POWER,
    00059   SCC_VOLUME_LONG,
    00060   SCC_VOLUME_SHORT,
    00061   SCC_WEIGHT_LONG,
    00062   SCC_WEIGHT_SHORT,
    00063   SCC_FORCE,
    00064   SCC_VELOCITY,
    00065   SCC_HEIGHT,
    00066
    00067   SCC_DATE_TINY,
    00068   SCC_DATE_SHORT,
    00069   SCC_DATE_LONG,
    00070   SCC_DATE_ISO,
    00071
    00072   /* Must be consecutive */
    00073   SCC_STRING1,
    00074   SCC_STRING2,
    00075   SCC_STRING3,
    00076   SCC_STRING4,
    00077   SCC_STRING5,
    00078   SCC_STRING6,
    00079   SCC_STRING7,
    00080
    00081
    00082   SCC_STRING,
    00083   SCC_COMMA,
    00084   SCC_DECIMAL,
    00085   SCC_NUM,
    00086   SCC_ZEROFILL_NUM,
    00087   SCC_HEX,
    00088   SCC_BYTES,
    00089
    00090   SCC_STRING_ID,
    00091   SCC_RAW_STRING_POINTER,
    00092   SCC_PLURAL_LIST,
    00093   SCC_GENDER_LIST,
    00094   SCC_GENDER_INDEX,
    00095   SCC_ARG_INDEX,
    00096   SCC_SET_CASE,
    00097   SCC_SWITCH_CASE,
    00098
    00099   /* Colour codes */
    00100   SCC_BLUE,
    00101   SCC_SILVER,
    00102   SCC_GOLD,
    00103   SCC_RED,
    00104   SCC_PURPLE,
    00105   SCC_LTBROWN,
    00106   SCC_ORANGE,
    00107   SCC_GREEN,
    00108   SCC_YELLOW,
    00109   SCC_DKGREEN,
    00110   SCC_CREAM,
    00111   SCC_BROWN,
    00112   SCC_WHITE,
    00113   SCC_LTBLUE,
    00114   SCC_GRAY,
    00115   SCC_DKBLUE,
    00116   SCC_BLACK,
    00117   SCC_PREVIOUS_COLOUR,
    00118
    00123   SCC_NEWGRF_FIRST,
    00124   SCC_NEWGRF_PRINT_DWORD_SIGNED = SCC_NEWGRF_FIRST,
    00125   SCC_NEWGRF_PRINT_WORD_SIGNED,
    00126   SCC_NEWGRF_PRINT_BYTE_SIGNED,
    00127   SCC_NEWGRF_PRINT_WORD_UNSIGNED,
    00128   SCC_NEWGRF_PRINT_DWORD_CURRENCY,
    00129   SCC_NEWGRF_PRINT_WORD_STRING_ID,
    00130   SCC_NEWGRF_PRINT_WORD_DATE_LONG,
    00131   SCC_NEWGRF_PRINT_WORD_DATE_SHORT,
    00132   SCC_NEWGRF_PRINT_WORD_SPEED,
    00133   SCC_NEWGRF_PRINT_WORD_VOLUME_LONG,
    00134   SCC_NEWGRF_PRINT_WORD_WEIGHT_LONG,
    00135   SCC_NEWGRF_PRINT_WORD_STATION_NAME,
    00136   SCC_NEWGRF_PRINT_QWORD_CURRENCY,
    00137   SCC_NEWGRF_PRINT_BYTE_HEX,
    00138   SCC_NEWGRF_PRINT_WORD_HEX,
    00139   SCC_NEWGRF_PRINT_DWORD_HEX,
    00140   SCC_NEWGRF_PRINT_QWORD_HEX,
    00141   SCC_NEWGRF_PRINT_DWORD_DATE_LONG,
    00142   SCC_NEWGRF_PRINT_DWORD_DATE_SHORT,
    00143   SCC_NEWGRF_PRINT_WORD_POWER,
    00144   SCC_NEWGRF_PRINT_WORD_VOLUME_SHORT,
    00145   SCC_NEWGRF_PRINT_WORD_WEIGHT_SHORT,
    00146   SCC_NEWGRF_PUSH_WORD,
    00147   SCC_NEWGRF_UNPRINT,
    00148   SCC_NEWGRF_DISCARD_WORD,
    00149   SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00150   SCC_NEWGRF_LAST = SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00151
    00152   SCC_NEWGRF_STRINL,
    00153
    00154   /* Special printable symbols.
    00155    * These are mapped to the original glyphs */
    00156   SCC_LESS_THAN        = SCC_SPRITE_START + 0x3C,
    00157   SCC_GREATER_THAN     = SCC_SPRITE_START + 0x3E,
    00158   SCC_UP_ARROW         = SCC_SPRITE_START + 0xA0,
    00159   SCC_DOWN_ARROW       = SCC_SPRITE_START + 0xAA,
    00160   SCC_CHECKMARK        = SCC_SPRITE_START + 0xAC,
    00161   SCC_CROSS            = SCC_SPRITE_START + 0xAD,
    00162   SCC_RIGHT_ARROW      = SCC_SPRITE_START + 0xAF,
    00163   SCC_TRAIN            = SCC_SPRITE_START + 0xB4,
    00164   SCC_LORRY            = SCC_SPRITE_START + 0xB5,
    00165   SCC_BUS              = SCC_SPRITE_START + 0xB6,
    00166   SCC_PLANE            = SCC_SPRITE_START + 0xB7,
    00167   SCC_SHIP             = SCC_SPRITE_START + 0xB8,
    00168   SCC_SUPERSCRIPT_M1   = SCC_SPRITE_START + 0xB9,
    00169   SCC_SMALL_UP_ARROW   = SCC_SPRITE_START + 0xBC,
    00170   SCC_SMALL_DOWN_ARROW = SCC_SPRITE_START + 0xBD,
    00171 };
    00172
    00173 #endif /* CONTROL_CODES_H */