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

    Interface InkTreeNode

    A widget in a tree read by ink.read.

    interface InkTreeNode {
        box?: InkBox;
        children?: InkTreeNode[];
        class: string;
        controller?: string;
        count: number;
        drawn?: [number, number];
        id: string;
        name: string;
        opacity: number;
        props?: Record<string, unknown>;
        text?: string;
        visible: boolean;
    }
    Index
    box?: InkBox
    children?: InkTreeNode[]

    Its children, unless the read stopped above them.

    class: string
    controller?: string

    Its logic controller's class.

    count: number

    How many children it has.

    drawn?: [number, number]

    With props: true: the size it is drawn at (its desired size when it fits its content).

    id: string

    Its id, the same for as long as the widget lives.

    name: string
    opacity: number
    props?: Record<string, unknown>

    With props: true: its layout and look, in the game's own types (layout, renderTransform, size, tintColor, opacity, fitToContent, childMargin, and a text's fontSize, fontStyle, letterCase, textHorizontalAlignment, an image's textureAtlas as a path hash and texturePart).

    text?: string

    A text widget's text, cut at 120 characters.

    visible: boolean