Skip to content

DrawWidget beta ​

Interface of @v12-engine/client

ts
export interface DrawWidget extends WidgetRules

Drawing of the game's own on the overlay's canvas, in the box the layout gives it

Members ​

draw ​

ts
draw: (context: CanvasRenderingContext2D, entity: EntityView, box: Box) => void;

Draws on the overlay's canvas in the box the layout gives it

height ​

ts
height: number;

The height the layout reserves, pixels

width ​

ts
width: number;

The width the layout reserves, pixels