cw.characterPanel panelclient
Panel defined in core/derma/cl_character.lua
Summary
Methods
cw.characterPanel) from the parent's customData: name, faction, model, the Use and Delete buttons and any extra buttons and labels from hooks.GetCharacterPanelToolTip and GetCharacterPanelWeaponModel hooks, once a second.Methods
Builds a character card (cw.characterPanel) from the parent's customData: name, faction, model,
the Use and Delete buttons and any extra buttons and labels from hooks.
Extra buttons come from the GetCustomCharacterButtons hook, extra labels from
GetCharacterPanelLabels and the model's animation from GetCharacterPanelSequence. Clicking the
model of the selected card opens a menu with the options from GetCustomCharacterOptions; clicking
another card selects it. Every action is sent to the server with the InteractCharacter Cable message.
Highlights the character's name when it is the selected one.
Parameters
- bActive Boolean Whether this card is selected
Updates the card's model tooltip and weapon model from the GetCharacterPanelToolTip and
GetCharacterPanelWeaponModel hooks, once a second.