diff --git a/distribution/openrct2.d.ts b/distribution/openrct2.d.ts index b2df570ff5..39ccbe0330 100644 --- a/distribution/openrct2.d.ts +++ b/distribution/openrct2.d.ts @@ -334,7 +334,8 @@ declare global { y: number; width: number; height: number; - isDisabled: boolean; + name?: string; + isDisabled?: boolean; } interface ButtonWidget extends Widget { @@ -381,6 +382,8 @@ declare global { widgets: Widget[]; close(): void; + bringToFront(): void; + findWidget(name: string): T; } interface TabbedWindow extends Window { @@ -402,6 +405,8 @@ declare global { minHeight?: number; widgets?: Widget[]; tabs?: Tab[]; + + onClose?: () => void; } type ToolCallbackType = "move" | "press" | "release";