0345

From GTAMods Wiki
Revision as of 16:52, 11 February 2016 by Spaceeinstein (talk | contribs) (Created page with "thumb|0345 in action {{OpCode | games = {{Icon|t}} | command = SET_TEXT_BACKGROUND | description = Sets the background of the text | syntax1 =...")
(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 have a length of 640.0 centered on the text. 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, text, box, background