Facepunch / garrysmod-requests

Feature requests for Garry's Mod
86 stars 24 forks source link

Disable Windows Mouse Cursor #2291

Open MagentaIris opened 9 months ago

MagentaIris commented 9 months ago

It appears to currently be impossible to disable the operating systems mouse cursor when drawing custom UI via gui.EnableScreenClicker.

Requesting a feature to disable this via something as simple as DisableCursor(true) and DisableCursor(false)

Being able to draw my own mouse cursors has been a luxury thanks to a simple little DLL, but having to not rely on that in the future would be a welcome change.

Picture below is just a simple show of Temporal Assassins mouse cursor as an example. image

robotboy655 commented 9 months ago

This feels like it would just be abused to permanently hide the cursor, or draw it offset to get ppl to click on unwanted things.

MagentaIris commented 9 months ago

So you're saying we can't have nice niche things because it can be abused? I already miss Asset loading screens because they actually consistently worked.

If people are joining a place that wants to abuse them then they're going to get abused, There are much worse methods out there by normal coding means than just hiding the cursor already.

You know what I mean?

I'm not trying to fight you on this or anything i'm just trying to make my case for this feature because i'd love to use it to create more artistic/stylistic cursor choices for my menus. (While them also working on Workshop, since workshop doesn't let me use DLL's, obviously.)

MagentaIris commented 9 months ago

Any update on if this is going to be viable or possible? I know I've made my case and my point but it's obviously up to you and the team either to accept or deny this request.

Just wanted to know since it's been 2 weeks is all, no rush.

Kefta commented 9 months ago

How about only allowing it to be overriden if the escape menu, console, or an HTML window isn't up? That should address any abuse concerns.

robotboy655 commented 9 months ago

If you must know it immediately, no, I have no immediate plans to fulfill this request. It is very niche. I just don't think it is worth my limited time. There's also the question of cross platform support, it this even possible on Linux given how widely different all the forks are, or on MacOS at all?

MagentaIris commented 9 months ago

If you must know it immediately, no, I have no immediate plans to fulfill this request. It is very niche. I just don't think it is worth my limited time. There's also the question of cross platform support, it this even possible on Linux given how widely different all the forks are, or on MacOS at all?

It being a windows only function doesn't matter because you can just internally add a check, system.IsWindows() exists for a reason after all.

I agree with Kefta though about how the mouse should always render if an game UI is open or an HTML window is up.

On top of that, If a dll file can be created to replicate this functionality in 5 minutes, adding the real deal is not going to be that hard.

If your main concern is that Linux or MacOS can't use this function and that's the reason to not add it, that simply makes no sense as now anyone using a windows operating system can not use this functionality or reap its benefits artistically because "Mac and Linux can't use it."