mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-10 09:32:29 +01:00
Scenery window: increase minimum height
This increases the minimum height of the Scenery window to fit at least 1.5 rows of scenery items, instead of 1 row. This is done to ensure the eyedropper and scatter tools are visible with multiple rows of tabs as well. Before: <img width="634" height="224" alt="Imagination Megapark 2025-09-15 22-38-56" src="https://github.com/user-attachments/assets/dcce9fad-a8e1-4001-9552-dd1ff97c082c" /> After: <img width="634" height="264" alt="Imagination Megapark 2025-09-15 22-38-46" src="https://github.com/user-attachments/assets/8e545aa7-8aef-4642-b78e-858bed2db1e8" />
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
- Improved: [#2296, #2307] The land tool now takes sloped track and paths into account when modifying land.
|
||||
- Change: [#25161] Revert to the ‘fair ride price’ calculation of vanilla RCT2.
|
||||
- Fix: [#24513] Ride/track designs can now be shifted underground as well.
|
||||
- Fix: [#24682] The scenery window isn't enough to accommodate all tool buttons when there are multiple rows of groups/tabs.
|
||||
- Fix: [#25131] The Reverse Freefall Coaster On-ride photo section track has incorrectly coloured ties.
|
||||
- Fix: [#25132] Crash when trying to use simulate on incomplete ride.
|
||||
- Fix: [#25134] Vehicles visually glitch on diagonal steep slopes.
|
||||
|
||||
@@ -1105,10 +1105,18 @@ namespace OpenRCT2::Ui::Windows
|
||||
private:
|
||||
int32_t GetMinimumHeight() const
|
||||
{
|
||||
// Minimum window height: title, one scenery button, status bar, padding
|
||||
int32_t newMinHeight = getTitleBarTargetHeight() + kSceneryButtonHeight + kDescriptionHeight + 2 * kTabMargin;
|
||||
newMinHeight += static_cast<int32_t>(1 + (_tabEntries.size() / GetMaxTabCountInARow())) * kTabHeight;
|
||||
// Minimum window height: title, status bar, padding
|
||||
int32_t newMinHeight = getTitleBarTargetHeight() + kDescriptionHeight + 2 * kTabMargin;
|
||||
|
||||
// Room for the search/filter widget
|
||||
newMinHeight += widgets[WIDX_FILTER_TEXT_BOX].height() + 2 * kInputMargin;
|
||||
|
||||
// Fit *all* rows of tabs
|
||||
newMinHeight += static_cast<int32_t>(1 + (_tabEntries.size() / GetMaxTabCountInARow())) * kTabHeight;
|
||||
|
||||
// And at least 1.5 rows of scenery items
|
||||
newMinHeight += 1.5 * kSceneryButtonHeight;
|
||||
|
||||
return newMinHeight;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user