Difference between revisions of "0349"

From GTAMods Wiki
Jump to navigation Jump to search
(page rewrite)
Line 1: Line 1:
<code>0349=1,%1d%</code><br>
+
[[File:0349.png|thumb|0349 in action]]
'''Description''': Sets the font for [[033E]]<br>
+
{{OpCode
'''Parameter 1''': Flag<br>
+
| games      = {{Icon|3}} {{Icon|SA}}
'''Supports''': GTA3, Vice City, San Andreas<br>
+
| command    = SET_<wbr>TEXT_<wbr>FONT
 +
| description = Sets the [[GXT#Character maps|font]] of the [[Text#Display text|text]]
 +
| syntax1    = 0349: text_draw_style = [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = Font style (see below)
 +
}}
  
This sets the font for [[033E]]. It needs to be placed before the text you want to have an effect on in order for it to work.
+
This opcode sets the font of the text. Using fonts outside the allowed range will produce white rectangles and may adversely affect other text. The lead image on this page shows text displayed in GTA III starting with font 0 at the top.
  
==Flags==
+
{|class="wikitable center-col-1"
===GTA3===
+
!rowspan="2" |Font ||colspan="2" |Name
===Vice City===
+
|-
===San Andreas===
+
!{{a|c}} |{{Icon|3}} ||{{a|c}} |{{Icon|SA}}
[[Image:0349.png|none|Set text draw font]]
+
|-
Flags -1 to -3 draws a white rectangle. Any other flags will make the text invisible.
+
|0 ||FONT_BANK ||
 +
|-
 +
|1 ||FONT_PAGER ||
 +
|-
 +
|2 ||FONT_HEADING ||
 +
|-
 +
|3 || - ||
 +
|}
  
==Keywords==
+
== Keywords ==
draw, text, font
+
set, draw, text, font, style
 
 
[[Category:OpCodes]]
 

Revision as of 18:32, 3 June 2016

0349 in action

GTA III San Andreas SET_TEXT_FONT


Description
Sets the font of the text
Syntax
0349: text_draw_style = [int]
Parameter
[int]
Font style (see below)

This opcode sets the font of the text. Using fonts outside the allowed range will produce white rectangles and may adversely affect other text. The lead image on this page shows text displayed in GTA III starting with font 0 at the top.

Font Name
GTA III San Andreas
0 FONT_BANK
1 FONT_PAGER
2 FONT_HEADING
3 -

Keywords

set, draw, text, font, style