Cooldown is a specialized variety of Frame that displays the little "clock" effect over abilities and buffs. It can be set with its running time, whether it should appear to "fill up" or "empty out", and whether or not there should be a bright edge where it's changing between dim and bright.
Cooldowns are usually children of another frame, and typically set to cover the same area as that frame, or almost all of it. In the stock UI, they are used mostly to display cooldowns on action buttons and buffs or debuffs on targets.
Defined Methods
- Cooldown:GetDrawBling() - This function is not yet documented
- Cooldown:GetDrawSwipe() - This function is not yet documented
- Cooldown:SetBlingTexture() - This function is not yet documented
- Cooldown:SetCooldownDuration() - This function is not yet documented
- Cooldown:SetCooldownUNIX() - This function is not yet documented
- Cooldown:SetDrawBling() - This function is not yet documented
- Cooldown:SetDrawSwipe() - This function is not yet documented
- Cooldown:SetEdgeTexture() - This function is not yet documented
- Cooldown:SetSwipeColor() - This function is not yet documented
- Cooldown:SetSwipeTexture() - This function is not yet documented
Inherited Methods
- Cooldown:GetPropagateKeyboardInput() - This function is not yet documented
- Cooldown:IsForbidden() - This function is not yet documented
- Cooldown:RegisterUnitEvent() - This function is not yet documented
- Cooldown:SetDontSavePosition() - This function is not yet documented
- Cooldown:SetPropagateKeyboardInput() - This function is not yet documented
- Cooldown:SetShown() - This function is not yet documented
- Cooldown:SetSize(width, height) - Sets the size of the region to the specified values
- Cooldown:SetToplevel(enable) - Sets whether the frame should automatically come to the front when clicked
- Cooldown:SetUserPlaced(enable) - Flags the frame for automatic saving and restoration of position and dimensions
- Cooldown:SetWidth(width) - Sets the region's width
- Cooldown:Show() - Shows the region
- Cooldown:StartMoving() - Begins repositioning the frame via mouse movement
- Cooldown:StartSizing() - Begins resizing the frame via mouse movement
- Cooldown:StopAnimating() - Stops any active animations involving the region or its children
- Cooldown:StopMovingOrSizing() - Ends movement or resizing of the frame initiated with [[docs/widgets/Frame/StartMoving|`:StartMoving()`]] or [[docs/widgets/Frame/StartSizing|`:StartSizing()`]]
- Cooldown:UnregisterAllEvents() - Unregisters the frame from any [[docs/events|events]] for which it is registered
- Cooldown:UnregisterEvent("event") - Unregisters the frame for an event
Script Handlers
- OnAttributeChanged(self, "name", value) - Run when a frame attribute is changed
- OnChar(self, "text") - Run for each text character typed in the frame
- OnDisable(self) - Run when the frame is disabled
- OnDragStart(self, "button") - Run when the mouse is dragged starting in the frame
- OnDragStop(self) - Run when the mouse button is released after a drag started in the frame
- OnEnable(self) - Run when the frame is enabled
- OnEnter(self, motion) - Run when the mouse cursor enters the frame's interactive area
- OnEvent(self, "event", ...) - Run whenever an [[docs/events|event]] fires for which the frame is registered
- OnHide(self) - Run when the frame's visbility changes to hidden
- OnKeyDown(self, "key") - Run when a keyboard key is pressed if the frame is keyboard enabled
- OnKeyUp(self, "key") - Run when a keyboard key is released if the frame is keyboard enabled
- OnLeave(self, motion) - Run when the mouse cursor leaves the frame's interactive area
- OnLoad(self) - Run when the frame is created
- OnMouseDown(self, "button") - Run when a mouse button is pressed while the cursor is over the frame
- OnMouseUp(self, "button") - Run when the mouse button is released following a mouse down action in the frame
- OnMouseWheel(self, delta) - Run when the frame receives a mouse wheel scrolling action
- OnReceiveDrag(self) - Run when the mouse button is released after dragging into the frame
- OnShow(self) - Run when the frame becomes visible
- OnSizeChanged(self, width, height) - Run when a frame's size changes
- OnUpdate(self, elapsed) - Run each time the screen is drawn by the game engine