0343

From GTAMods Wiki
Revision as of 17:21, 11 February 2016 by Spaceeinstein (talk | contribs) (Created page with "thumb|0343 in action {{OpCode | games = {{Icon|t}} | command = SET_TEXT_WRAPX | description = Sets the wrap x of the text | syntax1 = 0343: set...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
0343 in action

GTA III Vice City San Andreas SET_TEXT_WRAPX


Description
Sets the wrap x of the text
Syntax
0343: set_text_linewidth [flt]
Parameter
[flt]
X-position from the left side of the screen, defaults to 182.0

This opcode sets the wrap x of the text, which has the value of 182.0 by default. Text that goes beyond the wrap x will be wrapped to the next line. The background of the text relies on this property. Centered text ignores this property. The lead image on this page shows text displayed in Vice City at the x position of 100.0 and y positions starting at 10.0 and separated by 100.0 each. The first line uses the default wrap x of 182.0, the second line uses 300.0, and the final line uses 600.0.

Keywords

set, draw, text, linewidth, wrapx, wrap