Cursor Invisible --but--> SubCursor Visible [disSOLVED]

Started by I<3Pindorama!, Mon 29/12/2014 16:09:59

Previous topic - Next topic

I<3Pindorama!

Hello!

I have some difficulty in a Gui that I created.

It will work as a panel of buttons:



In the properties panel I've added the buttons and also
selected the image to overwrite the button:



But the mouse cursor is appearing and covering image (cognomen:subcursor :P):



I would like the cursor to stay invisible but still
working when over the panel:



Who can help me ... I give a pixel CAR!
And my gratitude ... of course!    (roll)

Cassiebsg

You either need to deactivate the mouse cursor, or define an animated cursor when over the button, then you can either use the "animated" cursor with the picture on it or use an empty sprite for the animated cursor when it's hovering the button... (sounds more complicated than it really is, honest) (laugh) .
To make an animated cursor you need to use the mouse settings on the project tree.
(hope you can find out of what I wrote...)
There are those who believe that life here began out there...

Adeel

Here's another solution. Put this code:
Code: ags
  if (GUIControl.GetAtScreenXY(mouse.x, mouse.y) == Button1) mouse.UseModeGraphic(eModeUsermode1);
  else mouse.UseDefaultGraphic();


in your repeatedly_execute() function located in the GlobalScript.asc. Make sure that the Usermode1's image is set to 0 (by default it is already set to 0, unless you've changed it).

Haven't tested this code but, in theory, it should work.

I<3Pindorama!

#3
It's Works!
WONDERFULLY!
Thank you very much!
I did not expect two answers ...
So you two have to take turns with the car, okay?
No fight, please!
:-D



I<3Pindorama!

Hahahahaha!
My good Ahmed
It was great!
(laugh)
I thank you for this honor!

Spoiler
[close]
;)

SMF spam blocked by CleanTalk