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

DrawDualText

PIXEL.DrawDualText( table title, table subtitle, number x = 0, number y = 0 )

Description

ℹ️

This method will resolve fonts registered with PIXEL UI. See PIXEL.RegisterFont or PIXEL.RegisterFontUnscaled for more information.

Draws two lines of shadow text with unique attributes. The title and subtitle arguments must be a table with the following format:

IndexTypePurpose
1string (opens in a new tab)The text to draw.
2string (opens in a new tab)The font to use.
3Color (opens in a new tab)The color of the text.
4number (opens in a new tab)The horizontal alignment.
5number (opens in a new tab)The size of the shadow.
6number (opens in a new tab)The transparency of the shadow.

Arguments

table title

The title text attributes.

table subtitle

The subtitle text attributes.

number x = 0

The X coordinate to draw at.

number y = 0

The Y coordinate to draw at.