class
GUIDropDownHitBox
Helper class used for detecting when a certain area is in focus, and getting notified when that state changes.
Public
Methods
staticGetGuiTypeName
Returns type name of the GUI element used for finding GUI element styles.
staticCreate
Creates a new drop down hit box that will detect mouse input over certain area.
You must call setBounds() to define the area.
- captureMouseOver
- If true mouse over/out/move events will be captured by this control and wont be passed to other GUI elements.
- captureMousePresses
- If true mouse clicks will be captured by this control and wont be passed to other GUI elements.
staticCreate
Creates a new drop down hit box that will detect mouse input over certain area.
You must call setBounds() to define the area.
- captureMouseOver
- If true mouse over/out/move events will be captured by this control and wont be passed to other GUI elements.
- captureMousePresses
- If true mouse clicks will be captured by this control and wont be passed to other GUI elements.
- options
- Options that allow you to control how is the element positioned and sized. This will override any similar options set by style.
SetBounds
Sets a single rectangle bounds in which the hitbox will capture mouse events.
SetBounds
Sets complex bounds consisting of multiple rectangles in which the hitbox will capture mouse events.
Fields
Private
Constructors
GUIDropDownHitBox
Methods
DoOnCommandEvent
Called when a command event is triggered.
Return true if you have processed the event and don't want other elements to process it.
DoOnMouseEvent
Called when a mouse event is received on any GUI element the mouse is interacting with.
Return true if you have processed the event and don't want other elements to process it.
IsInInteractionBounds
Checks is the specified position within interactable bounds of a GUI element.
These are the bounds that will be used for hit tests for e.g. mouse cursor. By default this is the same as the absolute clipped bounds of the GUI element. Position is relative to parent GUI widget.