A single character of the loading screen (fl_character_panel): shows its model with a button that selects the character and a button that deletes it once the player has typed the name of the character to confirm. A banned character is shown darkened, with a disabled button that says so in place of the two.

Summary

Methods

Init()client
Creates the model preview and the select and delete buttons.
Draws the panel through the theme's PaintCharPanel hook.
Positions the model preview and the select and delete buttons.
Sets the character shown by the panel and runs the PanelCharacterSet hook.

Methods

Creates the model preview and the select and delete buttons.

Draws the panel through the theme's PaintCharPanel hook.

Parameters

  • w Number
  • h Number

Positions the model preview and the select and delete buttons. The select button takes the whole width when there is no delete button next to it.

Parameters

  • w Number
  • h Number

PANEL:set_character(char_data)

client plugins/characters/plugin/views/cl_character_load.lua:209

Sets the character shown by the panel and runs the PanelCharacterSet hook. A banned character gets a darkened model and a disabled button that says it is banned instead of the select and delete buttons; the buttons of the active character are hidden.

Parameters

  • char_data Map networked character data

Defined in