cwStorageSpace panelclient
Panel defined in core/derma/cl_storage.lua
Summary
Methods
GetSpace()client
Returns the maximum space shown by the space bar.
GetUsedSpace()client
Returns the used space shown by the space bar.
Init()client
Creates the storage space bar (
cwStorageSpace) and its label.SetSpace(space)client
Sets the maximum space shown by the space bar.
SetUsedSpace(usedSpace)client
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
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.