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

    Interface InkBarProps

    Properties of ink.bar.

    interface InkBarProps {
        align?: InkAlign;
        anchor?: InkAnchor;
        bind?: InkSource;
        color?: InkColor;
        grow?: number;
        height?: number;
        id?: string;
        look?: "game" | "plain";
        margin?: number | readonly [number, number, number, number];
        of?: number | InkSource;
        opacity?: number;
        tone?: InkTone;
        track?: InkTone;
        value?: number;
        visible?: boolean;
        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

    A game value that fills it, read every frame by the plugin; see InkSource.

    color?: InkColor

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

    grow?: number

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

    height?: number

    Its thickness: 8 if not given.

    id?: string

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

    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].

    of?: number | InkSource

    What the bound value is out of: a number, or a source such as "player.healthMax". 100 if not given.

    opacity?: number

    From 0 (invisible) to 1.

    tone?: InkTone

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

    track?: InkTone

    The track's tone, behind the fill: "background" if not given.

    value?: number

    How full it is, from 0 to 1, when it is not bound.

    visible?: boolean
    width?: number

    The bar's length: 300 if not given.

    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.