Skip to content

NameTags

Name tags baked into an atlas, and drawn above heads.

new NameTags(atlas, o?): NameTags

Tags baked into atlas.

Atlas

TagOptions

NameTags

readonly height: number

The tag’s height, drawing units.

drop(): void

Forgets every tag (bake them again: the web font arrived).

void


get(name, color, ratio): Frame

The name in a pill of the colour, baked once per name, colour and resolution (ratio: pixels per unit).

string

string

number

Frame


draw(r, tex, body, def, box, name, color, alpha, ratio, width, height): void

Draws a player’s tag above the head of body as drawn in box (def’s band proportions), inside a width × height area (drawing units). ratio: pixels per unit.

Renderer

(s) => Texture

Body

AvatarDef

AvatarBox

string

string

number

number

number

number

void