BetterHud Cursor Menu entry displays a visual menu where the player controls a cursor by looking around (pitch/yaw). This allows for free-form layouts that mimic a mouse-driven interface without actual mouse capture.
interactions
- Cursor Control: Player gaze controls the cursor. Looking right/left moves X, up/down moves Y.
- Detection: The cursor hits buttons defined by X/Y/Width/Height.
- Click: Pressing the confirmation key (default: Shift/Drop) clicks the button.
Configuration
This entry requires a corresponding BetterHud configuration (Image/Layout/Popup) to render the visuals. The extension providescursor_x and cursor_y variables (0-100) to position the cursor image dynamically.
The ID of the BetterHud popup to display.
Definitions of interactable buttons.
Multiplier for cursor movement speed relative to head movement.
Degrees of horizontal rotation for full screen width.
Degrees of vertical rotation for full screen height.
Whether to calculate/show the cursor (true by default).
Optional title text to display.
Button Definition
Unique ID for the button.
Center X position (0-100%).
Center Y position (0-100%).
Size of the hit area width (percentage).
Size of the hit area height (percentage).
Display text for the button.
Actions to run when clicked.
BetterHud Setup
You must create valid BetterHudimages, layouts, and popups that respond to the variables:
[cursor_x],[cursor_y][hovered_button](ID of hovered button)[button_ID_hovered](1 if true, 0 if false)