Hi, topic sounds simpler than it is.

When I click right and hold the mouse pressed a panel opens:


Now, depending on the mouse position, an area on this panel should be selected. Even if the mouse is not on the panel but in the top cone, the left cone, the bottom cone or the right cone.

When I release the right mouse button the appropriate weapon should be selected.

Does anybody know a nice algorithm to map the mouse position to a panel area?

Thanks!


Last edited by PadMalcom; 09/13/11 08:45.