rednode API - v0.80.1
    Preparing search index...

    Interface WindowOptions

    Options of ui.window.

    interface WindowOptions {
        anchor?: Anchor;
        children: UiNode<Record<string, unknown>>[];
        closable?: boolean;
        height?: number;
        id?: string;
        onClose?: () => void;
        title: string;
        titleButtons?: TitleButton[];
        width?: number;
        x?: number;
        y?: number;
    }
    Index
    anchor?: Anchor

    Defaults to "center". A saved position wins after the player has moved the window.

    children: UiNode<Record<string, unknown>>[]

    The window's content, top to bottom.

    closable?: boolean

    Shows a close button. Defaults to true.

    height?: number

    Height in page pixels at 1080p. Defaults to 320. Space the content does not use is transparent and clicks through.

    id?: string

    Names the window within the mod, so its saved position is found again. Defaults to "main".

    onClose?: () => void

    Called when the player closes the window. The mod keeps running, and the launcher can show the window again.

    title: string

    The title bar text.

    titleButtons?: TitleButton[]

    Buttons of the mod's own in the title bar, beside close: the first next to close. They count toward the three icons there, so the window's own actions (roll up, reset position, debug) move into its ⋯ menu. Needs REDnode 0.57.0 or later.

    width?: number

    Width in page pixels at 1080p. Defaults to 360.

    x?: number
    y?: number