vgui_text_display
vgui_text_display is a point entity available
with any version of Mapbase.Displays a VGui text label oriented in the world. Can be considered Mapbase’s equivalent of point_worldtext. The panel itself can be displayed with the ‘r_vguitext_bg’ cvar.
KeyValues
- Entity Message (message) <string>
The text to appear on the panel. Has a maximum of 256 characters. If you need more space, use a localization token.
The text to appear on the panel. Has a maximum of 256 characters. If you need more space, use a localization token.
- Text Alignment (alignment) <choices>
The text's alignment in relation to the panel size. With 'South', the text will be centered between the origin and the sphere's left bound relative to the angles the text is facing.
The text's alignment in relation to the panel size. With 'South', the text will be centered between the origin and the sphere's left bound relative to the angles the text is facing.
- Font (font) <string>
Makes the text use a specific client scheme font. The font must not be additive or proportional. Commonly defined fonts include 'DefaultSmall' and 'Trebuchet18'/'Trebuchet24'. Also supports custom fonts defined through clientside VScript functions.
Makes the text use a specific client scheme font. The font must not be additive or proportional. Commonly defined fonts include 'DefaultSmall' and 'Trebuchet18'/'Trebuchet24'. Also supports custom fonts defined through clientside VScript functions.
- Panel Resolution (resolution) <integer>
The number of pixels available to the text. The higher the resolution is, the smaller the text will be. (NOTE: Changing the resolution with inputs later will scale the screen itself)
The number of pixels available to the text. The higher the resolution is, the smaller the text will be. (NOTE: Changing the resolution with inputs later will scale the screen itself)
- Panel Size (textsize) <float>
The size of the text panel in the world. This is previewed with a sphere, but it actually extends 'north-west' relative to the direction it's facing. Due to the limited in-editor previewing abilities, it's recommended to use the 'SetPanelSize' input in-game with the 'ent_fire' command to fine-tune this value. Use 'r_vguitext_bg' to display the panel in-game.
The size of the text panel in the world. This is previewed with a sphere, but it actually extends 'north-west' relative to the direction it's facing. Due to the limited in-editor previewing abilities, it's recommended to use the 'SetPanelSize' input in-game with the 'ent_fire' command to fine-tune this value. Use 'r_vguitext_bg' to display the panel in-game.
- Alpha (0 - 255) (renderamt) <integer>
The FX amount is used by the selected Render Mode.
The FX amount is used by the selected Render Mode.
- Color (rendercolor) <color255>
None
None
Flags
- [1] Start Disabled : 1
Inputs
- Enable
<void>
Start displaying the message text.
Start displaying the message text.
- Disable
<void>
Stop displaying the message text.
Stop displaying the message text.
- Toggle
<void>
Toggle displaying the message text.
Toggle displaying the message text.
- SetMessage
<string>
Set the message text.
Set the message text.
- SetTextAlignment
<integer>
Set text alignment by enum name.
Set text alignment by enum name.
- SetResolution
<integer>
Set the resolution. Might affect screen size.
Set the resolution. Might affect screen size.
- SetPanelSize
<float>
Set the text panel size.
Set the text panel size.
