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

    Interface UiNode<Props>

    One piece of a built window: text, a button, a row and so on.

    interface UiNode<Props extends object = Record<string, unknown>> {
        id: string;
        props: Readonly<Props>;
        type: string;
        set(props: Partial<Props>): void;
    }

    Type Parameters

    • Props extends object = Record<string, unknown>
    Index
    id: string

    Unique within the mod.

    props: Readonly<Props>

    The node's current properties.

    type: string

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

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

      Parameters

      Returns void

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