Implement dock building preview

This commit is contained in:
dP
2024-11-19 19:51:19 +05:00
parent 7f97eb01e2
commit f3e427a8fd
5 changed files with 151 additions and 2 deletions

View File

@@ -171,7 +171,11 @@ struct BuildDocksToolbarWindow : Window {
break;
case WID_DT_STATION: // Build station button
if (HandlePlacePushButton(this, WID_DT_STATION, SPR_CURSOR_DOCK, HT_SPECIAL, CM_DDSP_BUILD_DOCK)) ShowBuildDockStationPicker(this);
// if (HandlePlacePushButton(this, WID_DT_STATION, SPR_CURSOR_DOCK, HT_SPECIAL, CM_DDSP_BUILD_DOCK)) ShowBuildDockStationPicker(this);
if (citymania::HandleStationPlacePushButton(this, WID_DT_STATION, std::make_shared<citymania::DockPreview>())) {
ShowBuildDockStationPicker(this);
}
break;
case WID_DT_BUOY: // Build buoy button