From d3ee7eded141f5d6a4871357c2f5558ab4649494 Mon Sep 17 00:00:00 2001 From: Ian Polito Date: Thu, 2 Dec 2021 15:05:57 -0500 Subject: [PATCH] Fix #16007: Scenario Editor "Entry Price" appears in wrong place Entry Price label was being drawn to the right of the entryPriceWidget which is outside of the window. Changed to draw it to the right of the payForParkOrRidesWidget widget instead. --- distribution/changelog.txt | 1 + src/openrct2-ui/windows/EditorScenarioOptions.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 3984b71e05..51d5292fa1 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -14,6 +14,7 @@ - Improved: [#10664, #16072] Visibility status can be modified directly in the Tile Inspector's list. - Fix: [#15571] Non-ASCII characters in scenario description get distorted while saving. - Fix: [#15998] Cannot set map size to the actual maximum. +- Fix: [#16007] Scenario Editor "Entry Price" appears to the right of the value field - Fix: [#16008] Tile Inspector can select elements from last tile without reselecting it. - Fix: [#16063] Object Selection preview for objects with glass is broken. - Fix: [#16087] The Looping Roller Coaster booster is now always drawn correctly. diff --git a/src/openrct2-ui/windows/EditorScenarioOptions.cpp b/src/openrct2-ui/windows/EditorScenarioOptions.cpp index 00affbfbc2..1d7e7a71e8 100644 --- a/src/openrct2-ui/windows/EditorScenarioOptions.cpp +++ b/src/openrct2-ui/windows/EditorScenarioOptions.cpp @@ -1380,7 +1380,7 @@ static void WindowEditorScenarioOptionsParkPaint(rct_window* w, rct_drawpixelinf if (entryPriceWidget.type != WindowWidgetType::Empty) { // Entry price label - screenCoords = w->windowPos + ScreenCoordsXY{ entryPriceWidget.right + 8, entryPriceWidget.top }; + screenCoords = w->windowPos + ScreenCoordsXY{ payForParkOrRidesWidget.right + 8, entryPriceWidget.top }; DrawTextBasic(dpi, screenCoords, STR_ENTRY_PRICE_LABEL); // Entry price value