Menu

#1 Problem: Nifty Display and Overlay GUI

v1.0_(example)
closed
nobody
None
5
2013-02-06
2012-04-20
Anonymous
No

I have written a small program that displays a grid in the Nifty Display. I can move in there with mouse and keboard. setDragToRotate(true) is set.
Now i created a gui from xml file and try to overlay them. So i want to have the game world running and buttons over it like Data, help, quit etc.
What happens is that, i can see the buttons and move in the world with mouse, but i cant click the buttons. At startup it is possible to click the buttons, but after first time dragtorotate, it is no more possible to lcik a button. What can i do to use always the GUI when clicking on the buttons? and use the mouse click for the game world (niftyDiaplay)?
Another Problem out of the same direction is, that all gui elements can be clicked trough, so that elements in the world are selected. The xml command visibletoMouse is set, but is not always helpful.
PLS Help

Discussion

  • void256

    void256 - 2013-02-06

    Since there is no setDragToRotate(true) in Nifty I assume you're using jMonkeyEngine. Can you ask at the official forum for jME? I'm pretty sure the people there can help you much better!

    The visibleToMouse() issue you mentioned last has been fixed with Nifty 1.3.2 and should work much better - well, it should ACTUALLY work ;-) - in this version.

     
  • void256

    void256 - 2013-02-06
    • status: open --> closed
    • milestone: --> v1.0_(example)
     
MongoDB Logo MongoDB