mwg API
    Preparing search index...

    Interface WindowOptions

    interface WindowOptions {
        anchor?: "top" | "center" | "bottom";
        blocker?: boolean;
        closable?: boolean;
        closeButton?: boolean;
        colors?: WindowColors;
        dims?: boolean;
        height: number;
        modal?: boolean;
        title?: string;
        width: number;
    }
    Index
    anchor?: "top" | "center" | "bottom"

    where the stack puts it; 'bottom' is the usual place for a dialogue box

    blocker?: boolean

    Whether a click anywhere is swallowed rather than reaching what is underneath, and closes the window when it lands outside it. A window left to itself is not clickable - only the widgets inside it are - so a click on a map under an open inventory still reaches the map; this is the layer that stops it, and the tap-outside-to-dismiss a phone user expects.

    Off by default, since it is a change to what the whole screen answers to.

    closable?: boolean

    whether cancel closes it; false for a window that must be answered

    closeButton?: boolean

    Draws a visible close mark (✕) in the title corner of a closable window, so a touch player can see how to dismiss it. Off by default: cancel and a click outside already close it, and a mark would change every existing window's look.

    colors?: WindowColors

    Local palette overrides; omitted fields keep following the active theme.

    dims?: boolean

    Whether the world behind is dimmed. Defaults to true for a modal window.

    A dialogue box over a conversation scene is the case for false: it takes the input like any modal, but the scene behind it is what the player is meant to be looking at, so dimming it would be backwards.

    height: number
    modal?: boolean

    a modal window swallows input; anything below it stops responding

    title?: string
    width: number