⚠️ This site is under development, some artefacts may be missing or incomplete.
PIXEL UI
Formatting

Formatting

Methods

The following formatting methods are accessible via the PIXEL global table:

string PIXEL.WrapText( string, number, string )

Wraps the given text to fit within the specified width.

string PIXEL.EllipsesText( string, number, string )

Trims the given text to fit within the specified width and postfix it with ellipses.

string PIXEL.FormatMoney( number )

Converts the given value into a formatted money string according to the current gamemode settings.

string PIXEL.FormatTime( number )

Converts an amount of seconds into a formatted time string.

string PIXEL.DecToHex( number, number )

Converts a decimal number into a hexadecimal string.