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.
Note:can Debug it via AddOutput, making this entity very flexible and useful.
		
	
| No edit summary | No edit summary | ||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| {{entity|vgui_world_text_panel | {{this is a|point entity|name=vgui_world_text_panel|game=Counter-Strike: Global Offensive}} | ||
| == Usage == | == 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. | 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. | "\n" cant use. | ||
| Font  | |||
| Font type locked by Res file. | |||
| [[File:Class info of Vgui world text panel.png|thumb|Class info of Vgui world text panel]] | [[File:Class info of Vgui world text panel.png|thumb|Class info of Vgui world text panel]] | ||
| Line 22: | Line 26: | ||
| {{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 == | == Inputs == | ||
| {{ | {{minititle|vgui_world_text_panel}} | ||
| {{ | {{I|Enable|Start displaying the message text.}} | ||
| {{ | {{I|Disable|Stop displaying the message text.}} | ||
| {{ | {{I|SetDisplayText|Set the message text.|param=string}} | ||
| {{ | {{I|SetDisplayTextOption|param=string}} | ||
Latest revision as of 10:49, 26 September 2024
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.
 
  Contrast with Point Worldtext,SetDisplay via AddOutput
 Note:can Debug it via AddOutput, making this entity very flexible and useful.
Note:can Debug it via AddOutput, making this entity very flexible and useful.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>
