# control_codes.h

Go to the documentation of this file.

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