clik-engine API
    Preparing search index...

    Interface TooltipConfig

    interface TooltipConfig {
        backgroundColor?: number;
        color?: string;
        delay?: number;
        fontFamily?: string;
        fontSize?: string;
        icon?: string;
        maxWidth?: number;
        nineSlice?: { bottom: number; left: number; right: number; top: number };
        offsetY?: number;
        padding?: number;
        text: string;
        texture?: string;
        title?: string;
        titleColor?: string;
        titleFontSize?: string;
    }
    Index

    Properties

    backgroundColor?: number
    color?: string
    delay?: number

    Hover delay in ms before the tooltip appears (default 300).

    fontFamily?: string
    fontSize?: string
    icon?: string

    Optional icon texture key rendered to the left of the title.

    maxWidth?: number

    Max width before the body text word-wraps (default unlimited).

    nineSlice?: { bottom: number; left: number; right: number; top: number }

    9-slice insets for the texture background.

    offsetY?: number
    padding?: number
    text: string

    Body text (or the only text if no title).

    texture?: string

    Texture key for a 9-slice sprite background. When provided the colored-rectangle fallback is skipped.

    title?: string

    Optional bold title rendered above the body text.

    titleColor?: string
    titleFontSize?: string