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

    Interface UiList

    A scrolling list of lines, from ui.list.

    interface UiList {
        id: string;
        props: Readonly<Props>;
        type: string;
        clear(): void;
        push(...lines: string[]): void;
        set(props: Partial<Props>): void;
    }

    Hierarchy (View Summary)

    Index
    id: string

    Unique within the mod.

    props: Readonly<Props>

    The node's current properties.

    type: string

    The node's type, for example "button".

    • Adds lines at the bottom. Only the new lines go to the window, so a list fed many times a second stays cheap; the oldest drop off past keep.

      Parameters

      • ...lines: string[]

      Returns void

    • Changes some properties. The window updates at once if it is open.

      Parameters

      Returns void

      const status = ui.text("Waiting");
      status.set({ text: "Ready" });