84 VPM_X_AND_Y = 4, ///< area of land in X and Y directions |
84 VPM_X_AND_Y = 4, ///< area of land in X and Y directions |
85 VPM_X_AND_Y_LIMITED = 5, ///< area of land of limited size |
85 VPM_X_AND_Y_LIMITED = 5, ///< area of land of limited size |
86 VPM_SIGNALDIRS = 6, ///< similiar to VMP_RAILDIRS, but with different cursor |
86 VPM_SIGNALDIRS = 6, ///< similiar to VMP_RAILDIRS, but with different cursor |
87 }; |
87 }; |
88 |
88 |
89 /* viewport highlight mode (for highlighting tiles below cursor) */ |
89 /** Viewport highlight mode (for highlighting tiles below cursor) */ |
90 enum ViewportHighlightMode { |
90 enum ViewportHighlightMode { |
91 VHM_NONE = 0, ///< default |
91 VHM_NONE = 0, ///< default |
92 VHM_RECT = 1, ///< rectangle (stations, depots, ...) |
92 VHM_RECT = 1, ///< rectangle (stations, depots, ...) |
93 VHM_POINT = 2, ///< point (lower land, raise land, level land, ...) |
93 VHM_POINT = 2, ///< point (lower land, raise land, level land, ...) |
94 VHM_SPECIAL = 3, ///< special mode used for highlighting while dragging (and for tunnels/docks) |
94 VHM_SPECIAL = 3, ///< special mode used for highlighting while dragging (and for tunnels/docks) |
141 |
141 |
142 byte drawstyle; // lower bits 0-3 are reserved for detailed highlight information information |
142 byte drawstyle; // lower bits 0-3 are reserved for detailed highlight information information |
143 byte new_drawstyle; // only used in UpdateTileSelection() to as a buffer to compare if there was a change between old and new |
143 byte new_drawstyle; // only used in UpdateTileSelection() to as a buffer to compare if there was a change between old and new |
144 byte next_drawstyle; // queued, but not yet drawn style |
144 byte next_drawstyle; // queued, but not yet drawn style |
145 |
145 |
146 byte place_mode; |
146 ViewportHighlightMode place_mode; |
147 bool make_square_red; |
147 bool make_square_red; |
148 WindowClass window_class; |
148 WindowClass window_class; |
149 WindowNumber window_number; |
149 WindowNumber window_number; |
150 |
150 |
151 ViewportPlaceMethod select_method; |
151 ViewportPlaceMethod select_method; |