voice.Panel panelclient
Panel defined in core/derma/cl_voice.lua
Redefines the VoiceNotify derma control, the notice shown while a player speaks over voice chat.
Players the local player does not recognise are shown with their unrecognised name and an unknown avatar instead of their name and Steam avatar.
Summary
Methods
Methods
Creates the voice notice's name label.
Draws the voice notice's background in the team color, brighter with the player's voice volume.
Parameters
- w
- h
Places the voice notice's avatar and name in a 200 by 40 pixel box.
Sets the voice notice up for a speaking player.
Players the local player does not fully recognise are shown with their unrecognised name in brackets, cut to 24 characters when it is a physical description, and an unknown avatar. Recognised players are shown with their name and Steam avatar. The background uses the player's team color.
Parameters
- player Player The speaking player
Removes the voice notice once its player stops speaking or leaves.