viewport.h
changeset 4799 a32af5dd7b6c
parent 4344 5d0e40cd67b9
child 5026 c8b7148798ac
equal deleted inserted replaced
4798:1b51f31e542f 4799:a32af5dd7b6c
    69 };
    69 };
    70 
    70 
    71 void VpSelectTilesWithMethod(int x, int y, int method);
    71 void VpSelectTilesWithMethod(int x, int y, int method);
    72 
    72 
    73 // highlighting draw styles
    73 // highlighting draw styles
    74 enum {
    74 typedef byte HighLightStyle;
       
    75 enum HighLightStyles {
    75 	HT_NONE   = 0x00,
    76 	HT_NONE   = 0x00,
    76 	HT_RECT   = 0x80,
    77 	HT_RECT   = 0x80,
    77 	HT_POINT  = 0x40,
    78 	HT_POINT  = 0x40,
    78 	HT_LINE   = 0x20, /* used for autorail highlighting (longer streches)
    79 	HT_LINE   = 0x20, /* used for autorail highlighting (longer streches)
    79 	                   * (uses lower bits to indicate direction) */
    80 	                   * (uses lower bits to indicate direction) */
    80 	HT_RAIL   = 0x10, /* autorail (one piece)
    81 	HT_RAIL   = 0x10, /* autorail (one piece)
    81 	                  * (uses lower bits to indicate direction) */
    82 	                  * (uses lower bits to indicate direction) */
       
    83 	HT_DRAG_MASK = 0xF0, ///< masks the drag-type
    82 
    84 
    83 	/* lower bits (used with HT_LINE and HT_RAIL):
    85 	/* lower bits (used with HT_LINE and HT_RAIL):
    84 	 * (see ASCII art in autorail.h for a visual interpretation) */
    86 	 * (see ASCII art in autorail.h for a visual interpretation) */
    85 	HT_DIR_X  = 0,  // X direction
    87 	HT_DIR_X  = 0,    ///< X direction
    86 	HT_DIR_Y  = 1,  // Y direction
    88 	HT_DIR_Y  = 1,    ///< Y direction
    87 	HT_DIR_HU = 2, // horizontal upper
    89 	HT_DIR_HU = 2,    ///< horizontal upper
    88 	HT_DIR_HL = 3, // horizontal lower
    90 	HT_DIR_HL = 3,    ///< horizontal lower
    89 	HT_DIR_VL = 4, // vertical left
    91 	HT_DIR_VL = 4,    ///< vertical left
    90 	HT_DIR_VR = 5, // vertical right
    92 	HT_DIR_VR = 5,    ///< vertical right
       
    93 	HT_DIR_MASK = 0x7 ///< masks the drag-direction
    91 };
    94 };
    92 
    95 
    93 typedef struct TileHighlightData {
    96 typedef struct TileHighlightData {
    94 	Point size;
    97 	Point size;
    95 	Point outersize;
    98 	Point outersize;