mwg API
    Preparing search index...

    Interface BarOptions

    interface BarOptions {
        background?: number;
        backgroundTexture?: Texture<TextureSource<any>>;
        color?: number;
        fillTexture?: Texture<TextureSource<any>>;
        height: number;
        max?: number;
        roundUpToPixel?: boolean;
        value?: number;
        width: number;
    }
    Index
    background?: number

    The track's own colour; the theme's panel fill when omitted. Ignored when backgroundTexture is given, which owns the track's appearance instead.

    backgroundTexture?: Texture<TextureSource<any>>

    the track's own art; a plain colour rect (the theme's panel fill) when omitted

    color?: number

    the filled colour; defaults to the theme's highlight colour. Tints fillTexture too, when both are given

    fillTexture?: Texture<TextureSource<any>>

    the fill's own art, stretched to the filled width; a plain colour rect (the default) when omitted

    height: number
    max?: number
    roundUpToPixel?: boolean

    Rounds the filled width up to the next whole pixel instead of a fractional one, so a sliver of value (1 hp of 300, say) never rounds down to nothing. Off by default, since it very slightly overstates the fraction at low values - a game where that sliver matters more than the precision opts in.

    value?: number

    starting value, read the same way setValue is; defaults to full

    width: number