1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +01:00

Close #16251: Adjust openrct2.d.ts to actual API implementation

This commit is contained in:
Sadret
2022-02-18 21:59:44 +01:00
committed by GitHub
parent 5edc561715
commit 8898d0af56
2 changed files with 5 additions and 2 deletions

View File

@@ -18,6 +18,9 @@
- Improved: [#10664, #16072] Visibility status can be modified directly in the Tile Inspector's list.
- Improved: [#16251] Plugin API handles null values better.
- Improved: [#16251] openrct2.d.ts: mark 'callback' argument of queryAction and executeAction as optional.
- Improved: [#16251] openrct2.d.ts: change 'network.status' to 'network.mode' in network API docs.
- Improved: [#16251] openrct2.d.ts: added previously undocumented GroupBoxWidget.text property.
- Improved: [#16251] openrct2.d.ts: removed unused LabelWidget.onChange property.
- Improved: [#16258] Increased image limit in the engine.
- Improved: [#16408] Improve --version cli option to report more compatibility information.
- Change: [#16077] When importing SV6 files, the RCT1 land types are only added when they were actually used.

View File

@@ -1529,7 +1529,7 @@ declare global {
/**
* Network APIs
* Use `network.status` to determine whether the current game is a client, server or in single player mode.
* Use `network.mode` to determine whether the current game is a client, server or in single player mode.
*/
interface Network {
readonly mode: NetworkMode;
@@ -2291,13 +2291,13 @@ declare global {
interface GroupBoxWidget extends WidgetBase {
type: "groupbox";
text?: string;
}
interface LabelWidget extends WidgetBase {
type: "label";
text?: string;
textAlign?: TextAlignment;
onChange?: (index: number) => void;
}
type TextAlignment = "left" | "centred";