Summary

Methods

Init()client
Builds a class entry (cwClassesItem) for the parent's classTable, with its name, player count and model or image.
Places the class entry's icon, name and information labels.
Think()client
Refreshes the class entry's player count when it changes and keeps its icon in place.

Methods

Builds a class entry (cwClassesItem) for the parent's classTable, with its name, player count and model or image.

When the parent has an overrideData table, its information replaces the player count and its Callback runs with the class table on click instead of the SetClass command. The model can be changed through the PlayerAdjustClassModelInfo hook.

Places the class entry's icon, name and information labels.

Parameters

  • w
  • h

Refreshes the class entry's player count when it changes and keeps its icon in place.

Defined in