vgui_world_text_panel

From Valve Developer Community
Jump to navigation Jump to search

vgui_world_text_panel is a point entity available in Counter-Strike: Global Offensive Counter-Strike: Global Offensive. It shows text in the world similar to point_worldtext. One advantage it has over point_worldtext is its ability to render more fonts. However, placement is restricted to center rendering, and newline characters are unsupported.

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 <stringRedirectInput/string>
Set the message text.
SetDisplayTextOption <stringRedirectInput/string>