Difference between revisions of "0345"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "thumb|0345 in action {{OpCode | games = {{Icon|t}} | command = SET_TEXT_BACKGROUND | description = Sets the background of the text | syntax1 =...")
 
 
Line 2: Line 2:
 
{{OpCode
 
{{OpCode
 
| games      = {{Icon|t}}
 
| games      = {{Icon|t}}
| command    = SET_TEXT_BACKGROUND
+
| command    = SET_<wbr>TEXT_<wbr>BACKGROUND
| description = Sets the background of the text
+
| description = Sets the background of the [[Text#Intro text|text]]
 
| syntax1    = 0345: set_text_draw_in_box [''int'']
 
| syntax1    = 0345: set_text_draw_in_box [''int'']
 
| p1t        = [''int'']
 
| p1t        = [''int'']
Line 9: Line 9:
 
}}
 
}}
  
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, <span style="color: #808080;">&#x2b1b;</span>), which can be changed using opcode [[0346]] in GTA III. The length extends from the left side of the text to the [[0343|wrap x]] of the text. If the text is [[0342|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.
+
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, <span style="color: #808080;">&#x2b1b;</span>), which can be changed using opcode [[0346]] in GTA III. The length extends from the left side of the text to the [[0343|wrap x]] of the text. If the text is [[0342|centered]], the background will also be centered and have a length of the [[0344|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 ==
 
== Keywords ==
set, draw, text, box, background
+
set, draw, intro, {{K|text}}, box, background

Latest revision as of 00:51, 23 November 2016

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