Hello everyone,
i would like to modify the TestNiftyToMesh.java example (that could be found in example project) so that i could enable the mouse pointer on the mesh.
I would really be glad if anyone could give me a hint how to turn it on. Do I have to draw my own mouse pointer on it or can I use the NiftyMouse with
[java]this.nifty.getNiftyMouse().enableMouseCursor(“Interface/mousecursor.png”);[/java]
Okay, I’m starting to draw my own mouse cursor.
I’m doing that by adding a new SceneProcessor which is called DrawMouseCursorProcessor:
[java]
DrawMouseCursorProcessor mouseProcessor = new …;
…
niftyDisplay = new NiftyJmeDisplay(Globals.assetManager, Globals.inputManager, Globals.audioRenderer, viewPort);
nifty = niftyDisplay.getNifty();
onCreateNiftyUI(nifty);
viewPort.addProcessor(niftyDisplay);
viewPort.addProcessor(mouseProcessor);
[/java]
The mouse processor will be called after the nifty display processor and will draw the mouse over the gui. I hope this works.
Later. 