-
-
Notifications
You must be signed in to change notification settings - Fork 501
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
There are some cases when the cursor becomes invisible in main menu.
It appeared in 1.6, 1.5.9 didn't have this issue, so I think it connected with #2944 and #3034.
I use this script to control cursor visibility:
function updateVisibility()
local showDefault = isMainMenuActive() or isConsoleActive()
setCursorAlpha((showDefault) and 255 or 0)
end
setTimer(updateVisibility, 250, 0)The thing is, that cursor visibility have not always been restored by MTA when player opens main menu. And after blocking setCursorAlpha in main menu, I can't set it visible too, so player stays without cursor at all.
P.S. isMainMenuActive() returns true when main menu opened with no cursor, so it's not a culprit here. Also, F8 opened in main menu can repair cursor alpha.
Steps to reproduce
- Hide cursor with
setCursorAlpha(0)in a timer. - Start using
Escat some intervals, because bug does not always happen.
Version
Client: v1.6-release-21943 (Windows 7, 64-bit)
Additional context
Video demonstration: https://streamable.com/uesbqm
Relevant log output
No response
Security Policy
- I have read and understood the Security Policy and this issue is not security related.
Bence58
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working