Panel,Mouse features

Posted By: zazang

Panel,Mouse features - 10/10/08 03:44

Hello

1. We are having lots of panels on the screen and it would definelty help if there was a pointer that points to the topmost layered panel that is being touched by the mouse.
(similar to the mouse_ent pointer for entities)

2. Just as the "on_click" engine function(that is executed when the mouse is clicked somewhere on the screen), we are
also missing an "on_release" function that can be executed when the mouse is released over the view without hitting any panel or entity.

regards
zazang
Posted By: jcl

Re: Panel,Mouse features - 10/17/08 08:22

I think an on_release function can be realized by reading the mouse_left value. But a mouse_panel variable is a good idea and I'll add it to my list.
Posted By: zazang

Re: Panel,Mouse features - 10/19/08 00:51

The problem with reading mouse_left the way you mentioned is that the mouse_left var does not give any indicator where the mouse was clicked..like a panel or an entity or empty area of screen. So thats why an on_release is required.


Posted By: jcl

Re: Panel,Mouse features - 10/21/08 09:26

The best solution would be probably a general mouse event, with event_mode set to the type of event.
Posted By: zazang

Re: Panel,Mouse features - 10/21/08 09:55

yeah thats definetly a great solution smile
Posted By: zazang

Re: Panel,Mouse features - 10/21/08 14:56

wow mouse_panel already in beta..thanks JCL !
Posted By: Quad

Re: Panel,Mouse features - 10/21/08 15:00

cool, this can be usefull.
© 2024 lite-C Forums