Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   GuiContextMenuCtrl (https://forums.graalonline.com/forums/showthread.php?t=85739)

cbk1994 05-26-2009 03:10 AM

GuiContextMenuCtrl
 
http://pcauthorities.com/images/xp-new-menu.jpg

Any ideas how to achieve something like this, where hovering over an item can open another menu? I can't find any event for when you hover over an entry.

Inverness 05-26-2009 03:14 AM

Quote:

Originally Posted by Wiki
onMouseEnter(keymodifier,mousescreenx,mousescreeny ) - the mouse moved inside this control
onMouseLeave(keymodifier,mousescreenx,mousescreeny ) - the mouse left the control
onMouseMove(keymodifier,mousescreenx,mousescreeny) - the mouse has been moved

Track when the mouse has entered the menu and track the movement, when the movement hasn't changed for a certain amount of time open a sub-menu.

Pelikano 05-26-2009 11:39 AM

Quote:

Originally Posted by Inverness (Post 1494150)
Track when the mouse has entered the menu and track the movement, when the movement hasn't changed for a certain amount of time open a sub-menu.

an event should be added for this

cbk1994 05-26-2009 10:13 PM

Thanks Inverness, I just tried that.

The problem is that it's majorly glitched... I even had Tig come on and try it himself.

onMouseMove is called when you move OUTSIDE of that control.
onMouseEnter is called when you LEAVE that control
onMouseLeave is called when you ENTER that control

which makes it quite impossible to do using those events.

Deas_Voice 12-28-2010 08:16 AM

i was just thinking of this...
wow...
did you come up with an answer?

DustyPorViva 12-28-2010 08:59 AM

Quote:

Originally Posted by Deas_Voice (Post 1618571)
i was just thinking of this...
wow...
did you come up with an answer?

What Inverness suggested, assuming said events were fixed.

Deas_Voice 12-28-2010 03:45 PM

Quote:

Originally Posted by DustyPorViva (Post 1618573)
What Inverness suggested, assuming said events were fixed.

i would assume otherwise.

cbk1994 12-28-2010 04:18 PM

Quote:

Originally Posted by Deas_Voice (Post 1618571)
i was just thinking of this...
wow...
did you come up with an answer?

Yes, but I don't remember how I did it.


All times are GMT +2. The time now is 08:34 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.