Difference between revisions of "033E"

From GTAMods Wiki
Jump to navigation Jump to search
m
(page updates)
Line 1: Line 1:
<code>033E=3,%1d% %2d% %3g%</code><br>
+
{{OpCode
'''Description''': Draws a text on the screen<br>
+
| games      = {{Icon|t}}
'''Parameter 1''': Float (X-position in pixels)<br>
+
| command    = DISPLAY_TEXT
'''Parameter 2''': Float (Y-position in pixels)<br>
+
| description = Displays text on the screen
'''Parameter 3''': [[GXT]] string<br>
+
| syntax1    = 033E: text_draw [''flt1''] [''flt2''] '[''string'']'
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| p1t        = [''flt1'']
 +
| p1d        = X-position from the left side of the screen, visible between 0.0 and 640.0
 +
| p2t        = [''flt2'']
 +
| p2d        = Y-position from the top side of the screen, visible between 0.0 and 480.0
 +
| p3t        = [''string'']
 +
| p3d        = [[GXT]] string
 +
}}
  
This draws a text on the screen and can be positioned anywhere on the screen. The float values are X and Y positions of the text in pixels on a 640 by 480 screen. On larger resolutions, the positions will be scaled. I didn't test how would a widescreen will affect this. This opcode requires [[03F0]] to enable in order for the text to be drawn.
+
This opcode displays text at any position on the screen. The X and Y positions of the text are based on a 640 480 resolution. On larger resolutions, these positions are scaled accordingly. The text is permanently displayed on the screen &mdash; in order to remove it, you have to use opcode [[03F0]]. Vice City supports up to 47 text before becoming unstable. 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 along the X]] of 182.0.
  
[[Image:033E.png|none|Text draw]]
+
<gallery>
 +
033E.png|
 +
 +
033E 1280x720.png|
 +
</gallery>
  
Note: Don't use 0.0 as a position or you would get a black shadow as shown above. Any value greater than 0 would work fine.
+
== Keywords ==
 
+
display, draw, text
==Keywords==
 
draw, text
 
 
 
[[Category:OpCodes]]
 

Revision as of 07:04, 26 January 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 480.0
[string]
GXT string

03F0. Vice City supports up to 47 text before becoming unstable. 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 along the X of 182.0.

Keywords

display, draw, text