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

DrawFixedRoundedTextBox

PIXEL.DrawFixedRoundedTextBox( string text, string font, number x, number y, number xAlign = TEXT_ALIGN_LEFT, color textColor, number radius, number width, number height, number padding, Color boxColor )

Description

💡

This method will not resize the box to fit the text, see PIXEL.DrawRoundedTextBox for a method that does.

Draws a rounded box which contains the given text.

Arguments

string text

The text to draw.

string font

The identifier of the font to use.

number x

The X coordinate to draw at.

number y

The Y coordinate to draw at.

number xAlign = TEXT_ALIGN_LEFT

The horizontal alignment.

color textColor

The color of the text.

number radius

The radius of the rounded corners.

number width

The width of the box.

number height

The height of the box.

number padding

The amount of padding around the text.

Color boxColor

The color of the box.