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* welcome_str = "Welcome";
TEXT* welcome_txt =
{
layer = 1;
pos_x = 10;
pos_y = 10;
string (welcome_str,"this is","a","TEXT");
flags = CENTER_X | TRANSLUCENT | SHOW;
}
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,
string, alpha, flags
► latest
version online