mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #20338: Scenery Picker Hotkey not selected with re-paint tool
This commit is contained in:
parent
bc926057eb
commit
249c8259c1
|
@ -6,6 +6,7 @@
|
|||
- Improved: [#21599] Currency signs now use non-breaking spaces.
|
||||
- Change: [#21529] Classify “Southern Sands”, “Tiny Towers”, “Nevermore Park”, “Pacifica” as expert scenarios.
|
||||
- Fix: [#910] Extra viewport does not preserve the location when rotating.
|
||||
- Fix: [#20338] Cannot select Scenery Picker or Scatter Tool when the scenery recolouring tool is active.
|
||||
- Fix: [#21419] Cannot place walls underground beneath sloped tiles with clearance checks disabled.
|
||||
- Fix: [#21434] Number of guests overflows in objective text.
|
||||
- Fix: [#21543] Crash with creating a TrackIterator with invalid arguments.
|
||||
|
|
|
@ -466,7 +466,6 @@ static void ShortcutOpenSceneryPicker()
|
|||
|
||||
window_scenery = WindowFindByClass(WindowClass::Scenery);
|
||||
if (window_scenery != nullptr && !WidgetIsDisabled(*window_scenery, WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON)
|
||||
&& window_scenery->widgets[WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON].type != WindowWidgetType::Empty
|
||||
&& !gWindowSceneryEyedropperEnabled)
|
||||
{
|
||||
window_scenery->OnMouseUp(WC_SCENERY__WIDX_SCENERY_EYEDROPPER_BUTTON);
|
||||
|
|
|
@ -631,24 +631,15 @@ static Widget WindowSceneryBaseWidgets[] = {
|
|||
pressed_widgets |= (1uLL << WIDX_SCENERY_BUILD_CLUSTER_BUTTON);
|
||||
|
||||
widgets[WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type = WindowWidgetType::Empty;
|
||||
widgets[WIDX_SCENERY_EYEDROPPER_BUTTON].type = WindowWidgetType::Empty;
|
||||
widgets[WIDX_SCENERY_BUILD_CLUSTER_BUTTON].type = WindowWidgetType::Empty;
|
||||
widgets[WIDX_RESTRICT_SCENERY].type = WindowWidgetType::Empty;
|
||||
|
||||
if (!(gWindowSceneryPaintEnabled & 1))
|
||||
{
|
||||
widgets[WIDX_SCENERY_EYEDROPPER_BUTTON].type = WindowWidgetType::FlatBtn;
|
||||
}
|
||||
|
||||
const auto tabSelectedScenery = GetSelectedScenery(tabIndex);
|
||||
if (!tabSelectedScenery.IsUndefined())
|
||||
{
|
||||
if (tabSelectedScenery.SceneryType == SCENERY_TYPE_SMALL)
|
||||
{
|
||||
if (!(gWindowSceneryPaintEnabled & 1))
|
||||
{
|
||||
widgets[WIDX_SCENERY_BUILD_CLUSTER_BUTTON].type = WindowWidgetType::FlatBtn;
|
||||
}
|
||||
widgets[WIDX_SCENERY_BUILD_CLUSTER_BUTTON].type = WindowWidgetType::FlatBtn;
|
||||
|
||||
auto* sceneryEntry = OpenRCT2::ObjectManager::GetObjectEntry<SmallSceneryEntry>(
|
||||
tabSelectedScenery.EntryIndex);
|
||||
|
@ -685,7 +676,6 @@ static Widget WindowSceneryBaseWidgets[] = {
|
|||
widgets[WIDX_SCENERY_PRIMARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn;
|
||||
widgets[WIDX_SCENERY_SECONDARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn;
|
||||
widgets[WIDX_SCENERY_TERTIARY_COLOUR_BUTTON].type = WindowWidgetType::ColourBtn;
|
||||
widgets[WIDX_SCENERY_ROTATE_OBJECTS_BUTTON].type = WindowWidgetType::Empty;
|
||||
}
|
||||
else if (!tabSelectedScenery.IsUndefined())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue