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

    Interface InkTextProps

    Properties of ink.text.

    interface InkTextProps {
        align?: InkAlign;
        anchor?: InkAnchor;
        bind?: InkSource;
        case?: "upper" | "lower" | "original";
        color?: InkColor;
        decimals?: number;
        font?: string;
        format?: string;
        grow?: number;
        height?: number;
        id?: string;
        key?: string;
        look?: "game" | "plain";
        margin?: number | readonly [number, number, number, number];
        opacity?: number;
        size?: number;
        style?: InkTextStyle;
        text?: string | LocalText;
        textAlign?: "left" | "center" | "right";
        tone?: InkTone;
        visible?: boolean;
        weight?: string;
        width?: number;
        x?: number;
        y?: number;
    }

    Hierarchy (View Summary)

    Index
    align?: InkAlign

    In a column: "left", "center", "right" or "fill" (the column's width). In a row: "top", "center", "bottom" or "fill". Wins over the container's align.

    anchor?: InkAnchor

    Where the node sits in a canvas. Children of column and row are placed by them instead.

    bind?: InkSource

    Shows a game value, read by the plugin every frame and changed on screen only when the shown text changes. The mod sends nothing after this.

    ink.text("", { style: "value", bind: "player.health", format: "{value} HP" });
    
    case?: "upper" | "lower" | "original"

    "upper", "lower" or "original".

    color?: InkColor

    Its color (a tint: text and shapes take it as their color).

    decimals?: number

    Decimals of a bound value, 0 if not given.

    font?: string

    A font family's depot path; the game's Rajdhani if not given.

    format?: string

    How a bound value shows: {value} stands for it. "{value}" if not given.

    grow?: number

    In a column or row with a size of its own: takes this share of the space left.

    height?: number

    The node's height.

    id?: string

    A name to find the node by with InkMount.get.

    key?: string

    One of the game's own text keys, such as "UI-ResourceExports-Inventory": the game shows its translation.

    look?: "game" | "plain"

    "game" takes the game's look: its style sheet, its colors and, for text, its fonts and sizes. Giving a tone or a text style means "game" too. "plain" (the default for these basic tags) is styled by its own props only.

    margin?: number | readonly [number, number, number, number]

    Space around the node: one number for every side, or [left, top, right, bottom].

    opacity?: number

    From 0 (invisible) to 1.

    size?: number

    The font size: the style's, or 32.

    style?: InkTextStyle

    One of the game's text styles; see InkTextStyle. Its props win over the style's.

    text?: string | LocalText

    The text: a string; "LocKey#12345", which the game shows in the player's language and changes by itself with it; or t's text, sent again when the language changes.

    textAlign?: "left" | "center" | "right"

    Within the text's own width: "left", "center" or "right".

    tone?: InkTone

    One of the game's color roles; see InkTone. A color given wins over it.

    visible?: boolean
    weight?: string

    The font's weight, such as "Medium" (the default), "Semi-Bold" or "Bold".

    width?: number

    The node's width. Give width and height together.

    x?: number

    Moves the node from its anchor, in the layer's units, to the right.

    y?: number

    Moves the node from its anchor, in the layer's units, down.