set_custom_mouse_cursor()
while set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
results in incorrect cursor when the cursor is made visible again
#49815
Milestone
Describe the project you are working on:
A classic point & click adventure game.
Describe the problem or limitation you are having in your project:
My custom mouse cursor in my game changes by setting set_custom_mouse_cursor when hovering over interactive objects and hotspots. When the game is "busy" with displaying dialogue, for example, the mouse is hidden with set_mouse_mode(Input.MOUSE_MODE_HIDDEN). Users can however still mouse around. Unfortunately this results in the wrong mouse cursor being displayed when we return to normal, as a hidden cursor does not seem to be updated. I now have to manage a lot of exception handling to mitigate the issue, and it's a pain to get it right.
Describe the feature / enhancement and how it helps to overcome the problem or limitation:
Simply being able to change the custom mouse cursor while it's hidden would help tremendously.
Describe how your proposal will work, with code, pseudocode, mockups, and/or diagrams:
N/A
If this enhancement will not be used often, can it be worked around with a few lines of script?:
I need to do a lot of exception handling resulting In messy code for something which could be easily solved. (I assume!)
Is there a reason why this should be core and not an add-on in the asset library?:
I believe the nature of this feature/enhancement would lend more to a change in the core model rather than an add-on.
The text was updated successfully, but these errors were encountered: