0344

From GTAMods Wiki
Jump to navigation Jump to search
0344 in action

GTA III San Andreas SET_TEXT_CENTRE_SIZE


Description
Sets the size of centered text
Syntax
0344: set_text_draw_linewidth [flt] for_centered_text
Parameter
[flt]
Size (default 640.0)

This opcode sets the size of centered text, which has the size of 640.0 by default. Similar to wrap x for non-centered text, text that goes beyond the size will be wrapped to the next line. The lead image on this page shows text displayed in GTA III at the x position of 200.0 and y positions of 10.0 and 30.0. They are both centered and have background enabled but the first line uses the default center size while the second line uses a center size of 200.0.

Keywords

set, draw, intro, text, center, centre, centered, linewidth, wrap, size