equal
deleted
inserted
replaced
2292 if (_thd.new_drawstyle) SetSelectionTilesDirty(); |
2292 if (_thd.new_drawstyle) SetSelectionTilesDirty(); |
2293 } |
2293 } |
2294 } |
2294 } |
2295 |
2295 |
2296 /** highlighting tiles while only going over them with the mouse */ |
2296 /** highlighting tiles while only going over them with the mouse */ |
2297 void VpStartPlaceSizing(TileIndex tile, byte method, byte process) |
2297 void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, byte process) |
2298 { |
2298 { |
2299 _thd.select_method = method; |
2299 _thd.select_method = method; |
2300 _thd.select_proc = process; |
2300 _thd.select_proc = process; |
2301 _thd.selend.x = TileX(tile) * TILE_SIZE; |
2301 _thd.selend.x = TileX(tile) * TILE_SIZE; |
2302 _thd.selstart.x = TileX(tile) * TILE_SIZE; |
2302 _thd.selstart.x = TileX(tile) * TILE_SIZE; |
2629 * Selects tiles while dragging |
2629 * Selects tiles while dragging |
2630 * @param x X coordinate of end of selection |
2630 * @param x X coordinate of end of selection |
2631 * @param y Y coordinate of end of selection |
2631 * @param y Y coordinate of end of selection |
2632 * @param method modifies the way tiles are selected. Possible |
2632 * @param method modifies the way tiles are selected. Possible |
2633 * methods are VPM_* in viewport.h */ |
2633 * methods are VPM_* in viewport.h */ |
2634 void VpSelectTilesWithMethod(int x, int y, int method) |
2634 void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method) |
2635 { |
2635 { |
2636 int sx, sy; |
2636 int sx, sy; |
2637 HighLightStyle style; |
2637 HighLightStyle style; |
2638 |
2638 |
2639 if (x == -1) { |
2639 if (x == -1) { |