Skip to content

Change cursor icon on hovering over different UI elements#1522

Open
PUFFMON wants to merge 2 commits intoMCLCE:mainfrom
PUFFMON:KBM-Icons
Open

Change cursor icon on hovering over different UI elements#1522
PUFFMON wants to merge 2 commits intoMCLCE:mainfrom
PUFFMON:KBM-Icons

Conversation

@PUFFMON
Copy link
Copy Markdown

@PUFFMON PUFFMON commented Apr 16, 2026

Description

When playing using keyboard and Mouse, the mouse cursor's icon will change depending on what UI element is hovering on:

  • Basic menu buttons (Settings, main menu, etc) - PAINTING HAND IDC_HAND.
  • Text inputs (World name and seed) - I BEAM IDC_IBEAM.
  • Sliders (World size and some settings) - RESIZE HORIZONTAL IDC_SIZEWE.
  • None - DEFAULT ARROW IDC_ARROW.

Changes

Previous Behavior

The cursor always used the Arrow icon.

Root Cause

The behaviour wasn't programmed.

Fix Implementation

I added a new function inside KeyboardAndMouseInput script that changes the icon of the cursor. This function is called in UIController.cpp inside tickInput.

AI Use Disclosure

No AI was used

Current known issues

  • The cursor icon resets when clicking.

@PUFFMON
Copy link
Copy Markdown
Author

PUFFMON commented Apr 16, 2026

Fixed Button lists not updating the mouse icon. This fix also fixes the How to Play list,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants