Skip to content
On this page

AthenaClient.screen.screenText

Interfaces

Functions

addLongString

Usage

AthenaClient.screen.screenText.addLongString(text): void

Used as a utility for string length.

Static

Parameters

NameType
textstring

Returns

void

Defined in

client/screen/screenText.ts:22


drawTextWithBackground

Usage

AthenaClient.screen.screenText.drawTextWithBackground(text, x, y, scale, font, background, foreground, props): void

Draw text with a background and apply padding.

Static

Parameters

NameType
textstring
xnumber
ynumber
scalenumber
fontnumber
backgroundRGBA
foregroundRGBA
propsTextProperties

Returns

void

Defined in

client/screen/screenText.ts:85


getHeight

Usage

AthenaClient.screen.screenText.getHeight(scale, font): number

Get the height of text based on scale and font.

Static

Parameters

NameType
scalenumber
fontnumber

Returns

number

Defined in

client/screen/screenText.ts:68


getWidth

Usage

AthenaClient.screen.screenText.getWidth(text, font, scale): number

Get the float width of text. (0.1 - 1)

Static

Parameters

NameType
textstring
fontnumber
scalenumber

Returns

number

Defined in

client/screen/screenText.ts:52

Created by Stuyk | Est. 2020