diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java index e33201c89..7f9fb59ed 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyJmeDisplay.java @@ -49,7 +49,6 @@ import com.jme3.texture.FrameBuffer; import de.lessvoid.nifty.Nifty; import de.lessvoid.nifty.spi.input.InputSystem; import de.lessvoid.nifty.tools.TimeProvider; -import de.lessvoid.nifty.tools.resourceloader.ResourceLoader; import de.lessvoid.nifty.tools.resourceloader.ResourceLocation; import java.io.InputStream; import java.net.URL; @@ -92,7 +91,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement @Override public void initialize(RenderManager rm, ViewPort vp) { - ResourceLoader.addResourceLocation(resourceLocation); + nifty.getResourceLoader().addResourceLocation(resourceLocation); this.renderManager = rm; renderDev.setRenderManager(rm); inited = true; @@ -160,7 +159,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement @Override public void cleanup() { - ResourceLoader.removeResourceLocation(resourceLocation); + nifty.getResourceLoader().removeResourceLocation(resourceLocation); inited = false; // nifty.exit(); } diff --git a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewInputHandler.java b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewInputHandler.java index ada3544dc..a0174a23f 100644 --- a/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewInputHandler.java +++ b/sdk/jme3-gui/src/com/jme3/gde/gui/multiview/NiftyPreviewInputHandler.java @@ -6,6 +6,7 @@ package com.jme3.gde.gui.multiview; import de.lessvoid.nifty.NiftyInputConsumer; import de.lessvoid.nifty.input.keyboard.KeyboardInputEvent; +import de.lessvoid.nifty.tools.resourceloader.NiftyResourceLoader; import java.util.Iterator; import java.util.LinkedList; import java.util.List; @@ -45,4 +46,8 @@ public class NiftyPreviewInputHandler implements de.lessvoid.nifty.spi.input.Inp public void setMousePosition(int i, int i1) { // throw new UnsupportedOperationException("Not supported yet."); } + + public void setResourceLoader(NiftyResourceLoader nrl) { + } + }