Difference between revisions of "0349"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
(One intermediate revision by the same user not shown)
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#Intro text|text]]
 +
| syntax1    = 0349: text_draw_style = [''int'']
 +
| p1t        = [''int'']
 +
| p1d        = Font style ([[#Font styles|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==
+
== Font styles ==
===GTA3===
+
{|class="wikitable center-col-1"
===Vice City===
+
!rowspan="2" |Font ||colspan="2" |Name
===San Andreas===
+
|-
[[Image:0349.png|none|Set text draw font]]
+
!{{a|c}} |{{Icon|3}} ||{{a|c}} |{{Icon|SA}}
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, intro, {{K|text}}, font, style
 
 
[[Category:OpCodes]]
 

Latest revision as of 01:12, 23 November 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 styles

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

Keywords

set, draw, intro, text, font, style