PIXEL.Button
- Base panel:
Panel(opens in a new tab) - Source: cl_button.lua (opens in a new tab)
- Description: Basic PIXEL button panel with hover/click styling.
Methods
The following methods are available on the PIXEL.Button panel:
PANEL:PaintExtra( number, number )Extension point painted after the base button background.
PANEL:OnReleased( number )Callback fired when mouse press is released on the button.
PANEL:DoRightClick()Right-click handler for the button.
PANEL:DoMiddleClick()Middle-click handler for the button.