Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11855 Posts in 1569 Topics- by 3045 Members - Latest Member: lensreslai

10. February 2012, 05:15:06 AM
Xith3D CommunityGeneral CategoryFeature Requests & Brilliant Ideas (Moderators: Marvin Fröhlich, 'n ddrylliog)SelectionManager request
Pages: [1]
Print
Author Topic: SelectionManager request  (Read 1726 times)
Mancer
Enjoying the stay
*
Offline Offline

Posts: 68


View Profile
« on: 13. July 2008, 03:11:40 PM »

Hi, it's me again  Wink

I just have tried the SelectionManager and i've found it just so cool!  Cool
But, of course, i have a request about it... 

Have you planned to support the mouse double-click ?
In my opinion (and for my app), it's the only thing missing in this function...



Logged
Mathias 'cylab' Henze
Fierce Warrior
****
Offline Offline

Posts: 540

1064620
View Profile WWW
« Reply #1 on: 13. July 2008, 10:23:21 PM »

Just explain what you need to have added and I will do.
Logged

Mancer
Enjoying the stay
*
Offline Offline

Posts: 68


View Profile
« Reply #2 on: 14. July 2008, 09:42:49 AM »

Well, it's quite simple.

Actually the SelectionManager is able to react to three kind of event:
- left click for selection
- hold left click for moving
- right click for context menu

It will be perfect if we can react on the double clic.

For example the usage can be:
- picking object on the floor by doubleclicking them,
- attacking opponents
- auto-zoom on some objects
 

It can be done in multiple ways. One method could be to add a boolean field in the SelectionListener like this:
Code:
    void selectionChanged( List< Selectable > selection, List< Selectable > selectedContext, boolean doubleclick );

or by adding a new method in the listener
Code:
    void onDoubleClick( List< Selectable > selection, List< Selectable > selectedContext);
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic