# control_codes.h

    00001 /* $Id: control_codes.h 11981 2008-01-25 13:48:39Z peter1138 $ */
    00002
    00003 #ifndef CONTROL_CODES_H
    00004 #define CONTROL_CODES_H
    00005
    00006 /* List of string control codes used for string formatting, displaying, and
    00007  * by strgen to generate the language files. */
    00008
    00009 enum StringControlCode {
    00010   SCC_CONTROL_START = 0xE000,
    00011   SCC_CONTROL_END   = 0xE1FF,
    00012
    00013   SCC_SPRITE_START  = 0xE200,
    00014   SCC_SPRITE_END    = SCC_SPRITE_START + 0xFF,
    00015
    00016   /* Display control codes */
    00017   SCC_SETX = SCC_CONTROL_START,
    00018   SCC_SETXY,
    00019   SCC_TINYFONT,
    00020   SCC_BIGFONT,
    00021
    00022   /* Formatting control codes */
    00023   SCC_REVISION,
    00024   SCC_STATION_FEATURES,
    00025   SCC_INDUSTRY_NAME,
    00026   SCC_WAYPOINT_NAME,
    00027   SCC_STATION_NAME,
    00028   SCC_TOWN_NAME,
    00029   SCC_GROUP_NAME,
    00030   SCC_VEHICLE_NAME,
    00031   SCC_SIGN_NAME,
    00032   SCC_COMPANY_NAME,
    00033   SCC_COMPANY_NUM,
    00034   SCC_PLAYER_NAME,
    00035   SCC_ENGINE_NAME,
    00036
    00037   SCC_CURRENCY_COMPACT,
    00038   SCC_CURRENCY,
    00039
    00040   SCC_CARGO,
    00041   SCC_CARGO_SHORT,
    00042   SCC_POWER,
    00043   SCC_VOLUME,
    00044   SCC_VOLUME_SHORT,
    00045   SCC_WEIGHT,
    00046   SCC_WEIGHT_SHORT,
    00047   SCC_FORCE,
    00048   SCC_VELOCITY,
    00049
    00050   SCC_DATE_TINY,
    00051   SCC_DATE_SHORT,
    00052   SCC_DATE_LONG,
    00053
    00054   SCC_STRING1,
    00055   SCC_STRING2,
    00056   SCC_STRING3,
    00057   SCC_STRING4,
    00058   SCC_STRING5,
    00059
    00060   SCC_SKIP,
    00061   SCC_STRING,
    00062   SCC_COMMA,
    00063   SCC_NUM,
    00064
    00065   SCC_STRING_ID,
    00066   SCC_PLURAL_LIST,
    00067   SCC_GENDER_LIST,
    00068   SCC_GENDER_INDEX,
    00069   SCC_ARG_INDEX,
    00070   SCC_SETCASE,
    00071   SCC_SWITCH_CASE,
    00072
    00073   /* Colour codes */
    00074   SCC_BLUE,
    00075   SCC_SILVER,
    00076   SCC_GOLD,
    00077   SCC_RED,
    00078   SCC_PURPLE,
    00079   SCC_LTBROWN,
    00080   SCC_ORANGE,
    00081   SCC_GREEN,
    00082   SCC_YELLOW,
    00083   SCC_DKGREEN,
    00084   SCC_CREAM,
    00085   SCC_BROWN,
    00086   SCC_WHITE,
    00087   SCC_LTBLUE,
    00088   SCC_GRAY,
    00089   SCC_DKBLUE,
    00090   SCC_BLACK,
    00091   SCC_PREVIOUS_COLOUR,
    00092
    00097   SCC_NEWGRF_FIRST,
    00098   SCC_NEWGRF_PRINT_DWORD = SCC_NEWGRF_FIRST,
    00099   SCC_NEWGRF_PRINT_SIGNED_WORD,
    00100   SCC_NEWGRF_PRINT_SIGNED_BYTE,
    00101   SCC_NEWGRF_PRINT_UNSIGNED_WORD,
    00102   SCC_NEWGRF_PRINT_DWORD_CURRENCY,
    00103   SCC_NEWGRF_PRINT_STRING_ID,
    00104   SCC_NEWGRF_PRINT_DATE,
    00105   SCC_NEWGRF_PRINT_MONTH_YEAR,
    00106   SCC_NEWGRF_PRINT_WORD_SPEED,
    00107   SCC_NEWGRF_PRINT_WORD_LITRES,
    00108   SCC_NEWGRF_PRINT_QWORD_CURRENCY,
    00109   SCC_NEWGRF_PUSH_WORD,
    00110   SCC_NEWGRF_UNPRINT,
    00111   SCC_NEWGRF_DISCARD_WORD,
    00112   SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00113   SCC_NEWGRF_LAST = SCC_NEWGRF_ROTATE_TOP_4_WORDS,
    00114
    00115   /* Special printable symbols.
    00116    * These are mapped to the original glyphs */
    00117   SCC_LESSTHAN       = SCC_SPRITE_START + 0x3C,
    00118   SCC_GREATERTHAN    = SCC_SPRITE_START + 0x3E,
    00119   SCC_UPARROW        = SCC_SPRITE_START + 0xA0,
    00120   SCC_DOWNARROW      = SCC_SPRITE_START + 0xAA,
    00121   SCC_CHECKMARK      = SCC_SPRITE_START + 0xAC,
    00122   SCC_CROSS          = SCC_SPRITE_START + 0xAD,
    00123   SCC_RIGHTARROW     = SCC_SPRITE_START + 0xAF,
    00124   SCC_TRAIN          = SCC_SPRITE_START + 0xB4,
    00125   SCC_LORRY          = SCC_SPRITE_START + 0xB5,
    00126   SCC_BUS            = SCC_SPRITE_START + 0xB6,
    00127   SCC_PLANE          = SCC_SPRITE_START + 0xB7,
    00128   SCC_SHIP           = SCC_SPRITE_START + 0xB8,
    00129   SCC_SUPERSCRIPT_M1 = SCC_SPRITE_START + 0xB9,
    00130   SCC_SMALLUPARROW   = SCC_SPRITE_START + 0xBC,
    00131   SCC_SMALLDOWNARROW = SCC_SPRITE_START + 0xBD,
    00132 };
    00133
    00134 #endif /* CONTROL_CODES_H */