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

    Interface TitleButton

    A button in a window's title bar, given in WindowOptions.titleButtons.

    interface TitleButton {
        icon?: TitleIcon;
        id: string;
        label: string;
        on?: boolean;
        onClick?: () => void;
    }
    Index
    icon?: TitleIcon

    One of the UI kit's icons: key, settings, back, refresh, help, info, add, edit, search, list, home, pin, reset, space. Without one, the label shows.

    id: string

    Names the button within the window.

    label: string

    The tooltip, or the button's text when it has no icon.

    on?: boolean

    Shows the button lit, for a switch that is on.

    onClick?: () => void

    Runs in the mod when the player presses it.