Difference between revisions of "DISPLAY TEXT WITH FLOAT"

From GTAMods Wiki
Jump to navigation Jump to search
(New page: {{Native |np=4 |p1t=float |p1d=x pos |p2t=float |p2d=y pos |p3t=string |p3d=gxt entry |p4t=float |p4d=additional float |r=0 }} Draw GXT-Entry Text with additional float.)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 
{{Native
 
{{Native
|np=4
+
|np=5
 
|p1t=float
 
|p1t=float
 
|p1d=x pos
 
|p1d=x pos
Line 6: Line 6:
 
|p2d=y pos
 
|p2d=y pos
 
|p3t=string
 
|p3t=string
|p3d=gxt entry
+
|p3d=Unknown, always "NUMBER"
 
|p4t=float
 
|p4t=float
|p4d=additional float
+
|p4d=number to print/draw
 +
|p5t=int
 +
|p5d=amount of decimal places to show
 
|r=0
 
|r=0
 
}}
 
}}
  
Draw GXT-Entry Text with additional float.
+
Draws a float number on the screen.
 +
 
 +
Notes: parameter 1 and 2 must be numbers between 0.0 and 1.0 where 1.0 representes the screen width/height (e.g: To draw the text on the middle of the screen you should use parameter_1 = 0.5, parameter_2 = 0.5).

Latest revision as of 23:22, 6 January 2015

DISPLAY_TEXT_WITH_FLOAT
Number of parameters: 5
Parameter #TypeDescription
1.floatx pos
2.floaty pos
3.stringUnknown, always "NUMBER"
4.floatnumber to print/draw
5.intamount of decimal places to show
Return value:
TypeDescription
None

Draws a float number on the screen.

Notes: parameter 1 and 2 must be numbers between 0.0 and 1.0 where 1.0 representes the screen width/height (e.g: To draw the text on the middle of the screen you should use parameter_1 = 0.5, parameter_2 = 0.5).