From ec7088364efb46429b7d603e58f6c5491bf4e801 Mon Sep 17 00:00:00 2001 From: Basssiiie Date: Tue, 27 Apr 2021 17:14:23 +0200 Subject: [PATCH] Rename 'ListView' to 'ListViewWidget' in Typescript declaration --- distribution/changelog.txt | 1 + distribution/openrct2.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 1c7ce73d2b..42ad66a704 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -4,6 +4,7 @@ - Feature: [#14071] “Vandals stopped” statistic for security guards. - Feature: [#14296] Allow using early scenario completion in multiplayer. - Change: [#14496] [Plugin] Rename Object to LoadedObject to fix conflicts with Typescript's Object interface. +- Change: [#14536] [Plugin] Rename ListView to ListViewWidget to make it consistent with names of other widgets. - Fix: [#11829] Visual glitches and crashes when using RCT1 assets from mismatched or corrupt CSG1.DAT and CSG1i.DAT files. - Fix: [#13581] Opening the Options menu causes a noticeable drop in FPS. - Fix: [#13894] Block brakes do not animate. diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index 74486a37e0..775d804c9c 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -2054,7 +2054,7 @@ declare global { type Widget = ButtonWidget | CheckboxWidget | ColourPickerWidget | CustomWidget | DropdownWidget | GroupBoxWidget | - LabelWidget | ListView | SpinnerWidget | TextBoxWidget | ViewportWidget; + LabelWidget | ListViewWidget | SpinnerWidget | TextBoxWidget | ViewportWidget; interface WidgetBase { readonly window?: Window; @@ -2147,7 +2147,7 @@ declare global { column: number; } - interface ListView extends WidgetBase { + interface ListViewWidget extends WidgetBase { type: "listview"; scrollbars?: ScrollbarType; isStriped?: boolean;