cwStorageWeight panelclient
Panel defined in core/derma/cl_storage.lua
Summary
Methods
GetUsedWeight()client
Returns the used weight shown by the weight bar.
GetWeight()client
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.
SetWeight(weight)client
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.
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.