AthenaClient.screen.screenText ​
Interfaces ​
Functions ​
addLongString ​
Usage
AthenaClient.screen.screenText.addLongString(text
): void
Used as a utility for string length.
Static
Parameters ​
Name | Type |
---|---|
text | string |
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 ​
Name | Type |
---|---|
text | string |
x | number |
y | number |
scale | number |
font | number |
background | RGBA |
foreground | RGBA |
props | TextProperties |
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 ​
Name | Type |
---|---|
scale | number |
font | number |
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 ​
Name | Type |
---|---|
text | string |
font | number |
scale | number |
Returns ​
number