Difference between revisions of "0345"
(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 = | + | | 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;">⬛</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 | + | 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;">⬛</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
- 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