mwg API
    Preparing search index...

    Interface RichLabelOptions

    interface RichLabelOptions {
        align?: "left" | "right" | "center";
        bold?: boolean;
        color?: number;
        resolution?: number;
        size?: number;
        tagStyles?: Record<string, HTMLTextStyleOptions>;
        text?: string;
        wrapWidth?: number;
    }

    Hierarchy

    • ThemedTextOptions
      • RichLabelOptions
    Index
    align?: "left" | "right" | "center"
    bold?: boolean
    color?: number
    resolution?: number

    Text texture resolution; omit to use the renderer default.

    size?: number
    tagStyles?: Record<string, HTMLTextStyleOptions>

    Pixi HTMLText tag styles for custom inline tags, the same option a bare Text2D takes: supplying <quest>, say, makes <quest>...</quest> a styled run rather than escaped text.

    text?: string
    wrapWidth?: number

    wraps at this width in pixels; omit for a single unwrapped line