0344

From GTAMods Wiki
Revision as of 09:29, 23 November 2016 by Spaceeinstein (talk | contribs) (Created page with "thumb|0344 in action {{OpCode | games = {{Icon|3}} {{Icon|SA}} | command = SET_<wbr>TEXT_<wbr>CENTRE_<wbr>SIZE | description = Sets the size of cen...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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