0345

From GTAMods Wiki
Revision as of 00:51, 23 November 2016 by Spaceeinstein (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
0345 in action

GTA III Vice City San Andreas SET_TEXT_BACKGROUND


Description
Sets the background of the text
Syntax
0345: set_text_draw_in_box [int]
Parameter
[int]
0 = off (default), 1 = on

This opcode sets the background of the text, which is off by default. The background has the RGBA color of (128,128,128,128) (or #80808080 in hexadecimal, ), which can be changed using opcode 0346 in GTA III. The length extends from the left side of the text to the wrap x of the text. If the text is centered, the background will also be centered and have a length of the center size. The lead image on this page shows text displayed with background enabled in Vice City at positions (0.0, 0.0), (50.0, 50.0), (100.0, 100.0), and (200.0, 200.0), from top left to bottom right. Note that the last text is wrapped due to the default wrap x of 182.0, which causes the background to extend backwards from the left side of the text to the wrap x of the text.

Keywords

set, draw, intro, text, box, background