Summary

Methods

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

Methods

Returns the maximum space shown by the space bar.

Returns

  • Number Maximum space, or 0 when unset

Returns the used space shown by the space bar.

Returns

  • Number Space in use, or 0 when unset

Creates the storage space bar (cwStorageSpace) and its label.

Sets the maximum space shown by the space bar.

Parameters

  • space Number Maximum space

PANEL:SetUsedSpace(usedSpace)

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

Sets the used space shown by the space bar.

Parameters

  • usedSpace Number Space in use

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

Defined in