Sandbox.UI.Button
Reply on sbox.game-
Bot
Sandbox.UI.Button : api/Sandbox.UI.Button -
By default Button will have the
pointer-eventsproperty tonone, which mean that no mouse events will get fired.
Make sure to addpointer-events: all;in the SCSS to handle mouse events like onClick in your UI.
Example:
HTML<Button onclick="@Test">Test Button<Button/>
SCSSButton { pointer-events: all; }