TEXT* name = { ... }
This defines a formatted text named name. Texts are
used to hold string pointer arrays and to display them for menus, messages
or
dialogs.
Example:
STRING* willkommen_str = "Willkommen";
TEXT* willkommen_txt =
{
layer = 1;
pos_x = 10;
pos_y = 10;
size_y = 40;
offset_y = 0;
string (willkommen_str,"dies_ist","ein","text");
flags = CENTER_X | NARROW | TRANSPARENT | VISIBLE;
}
Remarks:
- Scene antialiasing settings in the 3D card settings menu can make bitmap fonts
look blurry, depending on the 3D hardware and driver version.
Use d3d_antialias for scene antialiasing.
-
The TEXT struct is defined in include\atypes.h.
-
Use txt_create() for creating a text object at runtime.
See also:
txt_create, layer,
pos_x, pos_y, size_y,
offset_y, strings,
font, char_x, char_y,
string, alpha, flags
► latest
version online