Vgui world text panel: Difference between revisions
Jump to navigation
Jump to search
Note:can Debug it via AddOutput, making this entity very flexible and useful.
(Created page with "{{csgo point}} vgui_world_text_panel is a point entity present in Counter-Strike: Global Offensive. It shows text in the world. == Keyvalues == {{KV Targetname}} {{KV|Enabled...") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{ | {{entity|vgui_world_text_panel|type=e0|game=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 size locked by Res file. | |||
[[File:Class info of Vgui world text panel.png|thumb|Class info of Vgui world text panel]] | |||
[[File:Contrast with Point Worldtext.png|thumb|Contrast with Point Worldtext,SetDisplay via [[AddOutput]]]] | |||
{{Note|can Debug it via [[AddOutput]], making this entity very flexible and useful.}} | |||
== Keyvalues == | == Keyvalues == | ||
{{KV Targetname}} | {{KV Targetname}} | ||
| Line 12: | Line 22: | ||
{{KV|Text Panel Width|intn=textpanelwidth|integer|How much space the text has before it wraps around.}} | {{KV|Text Panel Width|intn=textpanelwidth|integer|How much space the text has before it wraps around.}} | ||
{{KV|Text Color|intn=textcolor|color255|Color of the text.}} | {{KV|Text Color|intn=textcolor|color255|Color of the text.}} | ||
== | == Inputs == | ||
{{ScrollBox|title=vgui_world_text_panel|}} | |||
{{IO|Enable|Start displaying the message text.}} | |||
{{IO|Disable|Stop displaying the message text.}} | |||
{{IO|SetDisplayText|Set the message text.|param=string}} | |||
{{IO|SetDisplayTextOption|param=string}} | |||
== | {{I BaseEntity}} | ||
== Outputs == | |||
{{O BaseEntity}} | |||
Revision as of 23:21, 15 August 2023
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 size locked by Res file.
Contrast with Point Worldtext,SetDisplay via AddOutput
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
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>