Api Sandbox UI MousePanelEvent
class

MousePanelEvent

public class MousePanelEvent : PanelEvent

Mouse related PanelEvent.

Constructors

MousePanelEvent(String event_name, Panel active, String button)

Properties

Name Type Description
MouseButton MouseButtons Which button triggered the event, as a MouseButtons enum.

Fields

Name Type Description
LocalPosition Vector2 Position of the cursor relative to the panel's top left corner at the time the event was triggered.
Button String Which button triggered the event, in string form.
Assembly: Sandbox.Engine Namespace: Sandbox.UI Full Name: Sandbox.UI.MousePanelEvent