![]() ![]() I mean, really, it would make sense if I could just set both HIDDEN & CONFINED, and especially if that were an option in the source code, perhaps create a 5th enum. Until then, I'll probably just use a 1x1 image and try and use something that will blend in with the underlying marker that I'll eventually end up using in my game. I'll be on the Discord chats and reddit forums, too. Perhaps someone familiar with Godot open source code could help me find a quick solution that is pointing to something simple within the source code. I'm gonna make a bug report of my own on github and hopefully draw some more attention to it, or perhaps someone on the code team has a solution, but in the meantime, I'm just hoping someone might have some special work-around they could recommend, perhaps something involving resources and textures that they might have run into. "Strange way to hide cursor with mouse modes #27889" "Cursors set with transparent textures have visual issues on Windows. ![]() I've been digging around github bug reports and various things and it looks like a couple of other people are running into a similar problem, but it looks like the bug hasn't been resolved yet in the current stable release: They both produce a black image where there is transparency, those being Alternatively you can use GDI+ but that’s pretty old technology and doesn’t work nearly as well. You can use it to load a PNG image into your application. Thanks TwistedTwigleg, yeah I tried both of those methods with no luck. The Windows Imaging Component (WIC) is the primary API for native code that provides the ability to encode and decode various image formats. ![]() Help!Ī) I have some image/import settings incorrectī There is a script I can use when loading a resource that would allow me to manually turn on the alpha transparencyĬ) There is a simpler way to go about all of this to get both a CONFINED & HIDDEN mouse cursor (CAPTURED won't work because I still want to be able to swing the mouse cursor around on the screen) I would assume there is a way to set the alpha on a texture by scripting it but I can't seem to find the documentation and I also can't seem to figure out how to access and modify a texture or loaded resource from script. I checked the documentation (here: "Importing images") concerning (re)importing images and PNGs to get alphas to work but nothing seems to do the trick (unless I'm overlooking something). (I could even use a 1x1 but even that still shows a dot on the screen)īut the transparency alpha appears black, not transparent.Īs a result I'm getting a mouse cursor that has a black 10x10 area. Hide the mouse cursor using a 10x10 transparent. Confine the mouse cursor to the window using t_mouse_mode( Input.MOUSE_MODE_CONFINED )Īnd since I can't also use Input.MOUSE_MODE_HIDDEN to hide the mouse cursor, I've decided to.Ģ. I'm trying to hide the mouse cursor while at the same time allow me to use its input and location so that I can place a marker on the 3D floor, but I'm running into problems making the mouse cursor transparent.ġ. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |