cwSpawnIcon panelclient
Panel defined in core/derma/cl_spawnicon.lua
Defines cwSpawnIcon, a SpawnIcon that draws a colored border set with SetColor and a fading cooldown overlay
set with SetCooldown.
Summary
Methods
Init()client
Draws the cooldown overlay and the colored border over the icon.
SetColor(color)client
Sets the color of the border drawn over the icon.
Shows a cooldown overlay on the icon that fades out until the given time.
Methods
Draws the cooldown overlay and the colored border over the icon.
Sets the color of the border drawn over the icon.
Parameters
- color Color Border color, or
nilto draw no border
PANEL:SetCooldown(expireTime, textureID)
client gamemodes/catwork/gamemode/core/derma/cl_spawnicon.lua:59Shows a cooldown overlay on the icon that fades out until the given time.
Parameters
- expireTime Number
CurTimeat which the cooldown ends - textureID Number optional, defaults to
nilTexture ID of the overlay; defaults tovgui/white