Interface Painter

interface Painter {
    drawMultilineText(text: string, font: number, scale: number, w: number): void;
    drawRect(w: number, h: number): void;
    drawSprite(dict: string, name: string, w: number, h: number): void;
    drawText(text: string, font: number, scale: number): void;
    getFontSize(font: number, scale: number): number;
    getPosition(): Vector2;
    getTextLineCount(text: string, font: number, scale: number, w: number): number;
    getTextWidth(text: string, font: number, scale: number): number;
    move(x: number, y: number): void;
    setColor(r: number, g: number, b: number, a: number): void;
    setPosition(x: number, y: number): void;
}

Methods

  • Parameters

    • text: string
    • font: number
    • scale: number
    • w: number

    Returns void

  • Parameters

    • w: number
    • h: number

    Returns void

  • Parameters

    • dict: string
    • name: string
    • w: number
    • h: number

    Returns void

  • Parameters

    • text: string
    • font: number
    • scale: number

    Returns void

  • Parameters

    • font: number
    • scale: number

    Returns number

  • Parameters

    • text: string
    • font: number
    • scale: number
    • w: number

    Returns number

  • Parameters

    • text: string
    • font: number
    • scale: number

    Returns number

  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns void

  • Parameters

    • x: number
    • y: number

    Returns void