Difference between revisions of "0346"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "thumb|0346 in action {{OpCode | games = {{Icon|3}} | command = SET_<wbr>TEXT_<wbr>BACKGROUND_<wbr>COLOUR | description = Sets the color of the back...")
 
(No difference)

Latest revision as of 16:55, 12 February 2016

0346 in action

GTA III SET_TEXT_BACKGROUND_COLOUR


Description
Sets the color of the background of the text
Syntax
0346: set_text_draw_background_color [int1] [int2] [int3] [int4]
Parameter
[int1]
Red, between 0 and 255
[int2]
Green, between 0 and 255
[int3]
Blue, between 0 and 255
[int4]
Alpha, between 0 and 255

This opcode sets the color of the background of the text, which only has an effect when text background is switched on. The default color of the background has the RGBA color of (128,128,128,128) (or #80808080 in hexadecimal, ). The lead image on this page shows text displayed in GTA III. The colors in order of descent are default color and opacity, red with full opacity, yellow with full opacity, and yellow with half opacity.

Keywords

set, draw, text, box, background, color, colour