Change: Clamp terraform toolbar to main toolbar (#14725)
This commit is contained in:
@@ -265,6 +265,11 @@ struct BuildDocksToolbarWindow : Window {
|
||||
VpSelectTilesWithMethod(pt.x, pt.y, select_method);
|
||||
}
|
||||
|
||||
Point OnInitialPosition(int16_t sm_width, [[maybe_unused]] int16_t sm_height, [[maybe_unused]] int window_number) override
|
||||
{
|
||||
return AlignInitialConstructionToolbar(sm_width);
|
||||
}
|
||||
|
||||
void OnPlaceMouseUp([[maybe_unused]] ViewportPlaceMethod select_method, ViewportDragDropSelectionProcess select_proc, [[maybe_unused]] Point pt, TileIndex start_tile, TileIndex end_tile) override
|
||||
{
|
||||
if (pt.x != -1) {
|
||||
@@ -369,7 +374,7 @@ static constexpr std::initializer_list<NWidgetPart> _nested_build_docks_toolbar_
|
||||
};
|
||||
|
||||
static WindowDesc _build_docks_toolbar_desc(
|
||||
WDP_ALIGN_TOOLBAR, "toolbar_water", 0, 0,
|
||||
WDP_MANUAL, "toolbar_water", 0, 0,
|
||||
WC_BUILD_TOOLBAR, WC_NONE,
|
||||
WindowDefaultFlag::Construction,
|
||||
_nested_build_docks_toolbar_widgets,
|
||||
|
||||
Reference in New Issue
Block a user