- fix NiftyJmeDisplay in jMP

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7394 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 1a3823b6aa
commit 068ee238a3
  1. 4
      engine/src/niftygui/com/jme3/niftygui/NiftyJmeDisplay.java
  2. 3
      sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java

@ -79,6 +79,10 @@ public class NiftyJmeDisplay implements SceneProcessor {
}
}
//Empty constructor needed for jMP to create replacement input system
public NiftyJmeDisplay() {
}
public NiftyJmeDisplay(AssetManager assetManager,
InputManager inputManager,
AudioRenderer audioRenderer,

@ -46,6 +46,7 @@ import com.jme3.renderer.queue.RenderQueue;
import com.jme3.texture.FrameBuffer;
import de.lessvoid.nifty.Nifty;
import de.lessvoid.nifty.spi.input.InputSystem;
import de.lessvoid.nifty.tools.TimeProvider;
public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implements SceneProcessor {
@ -62,7 +63,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
soundDev = new SoundDeviceJme(assetManager, audioRenderer);
renderDev = new RenderDeviceJme(this);
nifty = new Nifty(renderDev, soundDev, inputManager, this);
nifty = new Nifty(renderDev, soundDev, inputManager, new TimeProvider());
}
@Override

Loading…
Cancel
Save