Difference between revisions of "033E"

From GTAMods Wiki
Jump to navigation Jump to search
(correct resolution)
Line 2: Line 2:
 
| games      = {{Icon|t}}
 
| games      = {{Icon|t}}
 
| command    = DISPLAY_TEXT
 
| command    = DISPLAY_TEXT
| description = Displays text on the screen
+
| description = Displays [[Text#Display text|text]] on the screen
 
| syntax1    = 033E: text_draw [''flt1''] [''flt2''] '[''string'']'
 
| syntax1    = 033E: text_draw [''flt1''] [''flt2''] '[''string'']'
 
| p1t        = [''flt1'']
 
| p1t        = [''flt1'']
 
| p1d        = X-position from the left side of the screen, visible between 0.0 and 640.0
 
| p1d        = X-position from the left side of the screen, visible between 0.0 and 640.0
 
| p2t        = [''flt2'']
 
| p2t        = [''flt2'']
| p2d        = Y-position from the top side of the screen, visible between 0.0 and 480.0
+
| p2d        = Y-position from the top side of the screen, visible between 0.0 and 448.0
 
| p3t        = [''string'']
 
| p3t        = [''string'']
| p3d        = [[GXT]] entry
+
| p3d        = [[GXT]] key
 
}}
 
}}
  
480 resolution. On larger resolutions, these positions are scaled accordingly. The text is permanently displayed on the screen — in order to remove it, you have to use opcode [[03F0]]. Vice City supports up to 47 text before becoming unstable and each text must be less than 100 characters long. Positions 0.0 and lower will display only the shadow of the text. The following images show text displayed 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 [[0343|wrap x]] of 182.0.
+
448 resolution. On different resolutions, these positions are scaled accordingly. You should use opcode [[03F0]] when using this opcode to prevent unintended side effects like permanent display or game crashes. Vice City supports up to 47 text before becoming unstable and each text must be less than 100 characters long. Positions 0.0 and lower will display only the shadow of the text. The following images show text displayed 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 [[0343|wrap x]] of 182.0.
  
 
<gallery>
 
<gallery>

Revision as of 14:35, 30 May 2016

GTA III Vice City San Andreas DISPLAY_TEXT


Description
Displays text on the screen
Syntax
033E: text_draw [flt1] [flt2] '[string]'
Parameter
[flt1]
X-position from the left side of the screen, visible between 0.0 and 640.0
[flt2]
Y-position from the top side of the screen, visible between 0.0 and 448.0
[string]
GXT key

03F0 when using this opcode to prevent unintended side effects like permanent display or game crashes. Vice City supports up to 47 text before becoming unstable and each text must be less than 100 characters long. Positions 0.0 and lower will display only the shadow of the text. The following images show text displayed 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.

Keywords

display, draw, text