NameTags
Name tags baked into an atlas, and drawn above heads.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new NameTags(
atlas,o?):NameTags
Tags baked into atlas.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”NameTags
Properties
Section titled “Properties”height
Section titled “height”
readonlyheight:number
The tag’s height, drawing units.
Methods
Section titled “Methods”drop()
Section titled “drop()”drop():
void
Forgets every tag (bake them again: the web font arrived).
Returns
Section titled “Returns”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).
Parameters
Section titled “Parameters”string
string
number
Returns
Section titled “Returns”draw()
Section titled “draw()”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.
Parameters
Section titled “Parameters”(s) => Texture
string
string
number
number
number
height
Section titled “height”number
Returns
Section titled “Returns”void