vgui_world_text_panel

From Valve Developer Community
Jump to: navigation, search

vgui_world_text_panel is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive.

Usage

vgui_world_text_panel is a point entity present in Counter-Strike: Global Offensive. It shows text in the world.In one way,it's better than Point_Worldtext,cause it offer more font,even if more language.

But debug is a difficult thing,cause it display always at center.

"\n" cant use.

Font type locked by Res file.

Class info of Vgui world text panel
Contrast with Point Worldtext,SetDisplay via AddOutput


Note.pngNote:can Debug it via AddOutput, making this entity very flexible and useful.

Keyvalues

Name (targetname) <string>
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Enabled (enabled) <boolean>
Display Text (displaytext) <string>
Text to show.
Display Text Option (displaytextoption) <string>
Text that will be inserted in the place of a %s1 if you token has one - if you don't know what that is, don't use this
Font (font) <string>
Name of a font to show. Must match an entry in the fonts section of csgo/pak01_dir.vpk/resource/sourcescheme.res. But some not useful.
Panel width (width) <integer>
How wide the text is. The size of the text also depends on the tall variable in sourcescheme.res.
Panel height (height) <integer>
How tall the text is.
Text Panel Width (textpanelwidth) <integer>
How much space the text has before it wraps around.
Text Color (textcolor) <color255>
Color of the text.

Inputs

vgui_world_text_panel:

Enable
Start displaying the message text.
Disable
Stop displaying the message text.
SetDisplayText <string>
Set the message text.
SetDisplayTextOption <string>