Summary

Methods

Returns the used weight shown by the weight bar.
Returns the maximum weight shown by the weight bar.
Init()client
Creates the storage weight bar (cwStorageWeight) and its label.
Sets the used weight shown by the weight bar.
Sets the maximum weight shown by the weight bar.
Think()client
Lays out the weight bar and updates its label when the used or maximum weight changes.

Methods

Returns the used weight shown by the weight bar.

Returns

  • Number Weight in use, or 0 when unset

Returns the maximum weight shown by the weight bar.

Returns

  • Number Maximum weight, or 0 when unset

Creates the storage weight bar (cwStorageWeight) and its label.

PANEL:SetUsedWeight(usedWeight)

client gamemodes/catwork/gamemode/core/derma/cl_storage.lua:400

Sets the used weight shown by the weight bar.

Parameters

  • usedWeight Number Weight in use

Sets the maximum weight shown by the weight bar.

Parameters

  • weight Number Maximum weight

Lays out the weight bar and updates its label when the used or maximum weight changes.

Defined in