vgui_control_proxy

A vgui_control_proxy changes one control of a world screen, a vgui_screen, for every player when
you trigger it. It can change the text or value of the control, enable or disable it, show or hide it, or play an
animation.
Attributes
The entity also has these common keys:
- Naming and triggering: Name
KeyDescriptionDefault
Screen
screenNames the vgui_screen.
Control Name
controlnameNames the control in the screen's layout file. With "Play animation", it names the state group that keeps the animation for players who join later.
If you leave this key empty with "Play animation", the animation plays once and isn't kept.
Change
modeSets what it changes.
- Set the text (0) - It sets the text of a label or a button, or the value of a progress bar, an analog bar or a slider as a percentage from 0 to 100
- Enable (1)
- Disable (2)
- Show (3)
- Hide (4)
- Play animation (5) - It plays a sequence of the layout's
<panel name>_anims.txt
Default
Set the text (0)Text / value / sequence
textSets the text, the value or the animation sequence, with up to 127 characters. A #Token shows a translated text.
Notes
- The game keeps the latest change of each control, so players who join later see it too
- A
trigger_changevalueor atrigger_copyvaluecan write itstextkey before the proxy is triggered
See also
vgui_screen- the screen it changes- World screens - layouts, controls and animations
Changes since 1.38
vgui_control_proxyis new