Allow calling init presizing mode from outside viewport.cpp.
This commit is contained in:
@@ -25,6 +25,7 @@ void ResetObjectToPlace();
|
|||||||
|
|
||||||
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
|
void VpSelectTilesWithMethod(int x, int y, ViewportPlaceMethod method);
|
||||||
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
|
void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDragDropSelectionProcess process);
|
||||||
|
void VpStartPreSizing();
|
||||||
void VpSetPresizeRange(TileIndex from, TileIndex to);
|
void VpSetPresizeRange(TileIndex from, TileIndex to);
|
||||||
void VpSetPlaceSizingLimit(int limit);
|
void VpSetPlaceSizingLimit(int limit);
|
||||||
|
|
||||||
|
|||||||
@@ -2301,7 +2301,7 @@ void VpSetPresizeRange(TileIndex from, TileIndex to)
|
|||||||
if (distance > 1) ShowMeasurementTooltips(STR_MEASURE_LENGTH, 1, &distance, TCC_HOVER);
|
if (distance > 1) ShowMeasurementTooltips(STR_MEASURE_LENGTH, 1, &distance, TCC_HOVER);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void VpStartPreSizing()
|
void VpStartPreSizing()
|
||||||
{
|
{
|
||||||
_thd.selend.x = -1;
|
_thd.selend.x = -1;
|
||||||
_special_mouse_mode = WSM_PRESIZE;
|
_special_mouse_mode = WSM_PRESIZE;
|
||||||
|
|||||||
Reference in New Issue
Block a user