Game text tf: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (typo)
Line 1: Line 1:
{{wrongtitle|title=game_text_tf}}
{{wrongtitle|title=game_text_tf}}


==Entity Description==
== Entity description ==
[[Image:Game text.png|left]]An entity that displays text on players' screens. This text can be defined directly in the Hammer editor (unlike the similar [[env_message]] entity). This entity is suitable for stand alone bsp maps, if they are not to be [[VGUI_Documentation#Localization|localized]].
[[Image:Game text.png|left]]An entity that displays text on players' screens. This text can be defined directly in the Hammer editor (unlike the similar [[env_message]] entity). This entity is suitable for stand alone bsp maps, if they are not to be [[VGUI_Documentation#Localization|localized]].


{{Warning|Don't use quotation characters (") in the ''Text Message'' field (not even <code>\"</code> characters). It will cause fatal errors with opening and/or compiling your map and may need to be fixed by manually editing the [[VMF]] in a text editor. Instead, use use detailed quotes (i.e. <tt>&ldquo;</tt> and <tt>&rdquo;</tt>).}}
{{Warning|Don't use quotation characters (") in the ''Text Message'' field (not even <code>\"</code> characters). It will cause fatal errors with opening and/or compiling your map and may need to be fixed by manually editing the [[VMF]] in a text editor. Instead, you use detailed quotes (i.e. <tt>&ldquo;</tt> and <tt>&rdquo;</tt>).}}
{{clr}}
{{clr}}


==Keyvalues==
== Keyvalues ==
*{{kv targetname}}
*{{kv targetname}}
*'''message'''
*'''message'''
:<string> Message to display onscreen. \n signifies a new line in the text.
:<string> Message to display on screen. \n signifies a new line in the text.
*'''icon'''
*'''icon'''
:<string> Hud icon (from mod_textures.res) to display.
:<string> Hud icon (from mod_textures.res) to display.
Line 36: Line 36:
|}
|}


==Inputs==
== Inputs ==
*{{i targetname}}
*{{i targetname}}
*'''Display'''
*'''Display'''
:Display the message text.
:Display the message text.


==Outputs==
== Outputs ==
*{{o targetname}}
*{{o targetname}}


[[Category:Team Fortress 2 Entities]]
[[Category:Team Fortress 2 Entities]]

Revision as of 14:12, 27 September 2007

Template:Wrongtitle

Entity description

Game text.png

An entity that displays text on players' screens. This text can be defined directly in the Hammer editor (unlike the similar env_message entity). This entity is suitable for stand alone bsp maps, if they are not to be localized.

Warning.pngWarning:Don't use quotation characters (") in the Text Message field (not even \" characters). It will cause fatal errors with opening and/or compiling your map and may need to be fixed by manually editing the VMF in a text editor. Instead, you use detailed quotes (i.e. and ).

Keyvalues

<string> Message to display on screen. \n signifies a new line in the text.
  • icon
<string> Hud icon (from mod_textures.res) to display.
  • display_to_team
<choices> Audience
Literal Value Description
0 Everyone
2 Red Team Only
3 Blue Team Only
  • background
<choices> Background Panel Color
Literal Value Description
0 Grey
2 Red
3 Blue

Inputs

Display the message text.

Outputs