|
|
@ -97,7 +97,7 @@ struct EnginePreviewWindow : Window {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this->vehicle_space = std::max<int>(ScaleSpriteTrad(40), y - y_offs);
|
|
|
|
this->vehicle_space = std::max<int>(ScaleSpriteTrad(40), y - y_offs);
|
|
|
|
|
|
|
|
|
|
|
|
size->width = std::max(size->width, x - x_offs);
|
|
|
|
size->width = std::max(size->width, x + std::abs(x_offs));
|
|
|
|
SetDParam(0, GetEngineCategoryName(engine));
|
|
|
|
SetDParam(0, GetEngineCategoryName(engine));
|
|
|
|
size->height = GetStringHeight(STR_ENGINE_PREVIEW_MESSAGE, size->width) + WidgetDimensions::scaled.vsep_wide + GetCharacterHeight(FS_NORMAL) + this->vehicle_space;
|
|
|
|
size->height = GetStringHeight(STR_ENGINE_PREVIEW_MESSAGE, size->width) + WidgetDimensions::scaled.vsep_wide + GetCharacterHeight(FS_NORMAL) + this->vehicle_space;
|
|
|
|
SetDParam(0, engine);
|
|
|
|
SetDParam(0, engine);
|
|
|
|