- Sets the background of the text
- 0345: set_text_draw_in_box [int]
- 0 = off (default), = 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.
set, draw, intro,, box, background