rednode API - v0.1.0
    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;
        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.

    title: string

    The title bar text.

    width?: number

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

    x?: number
    y?: number