|
@@ -73,6 +73,8 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private ResourceLocation resourceLocation = new ResourceLocationJmp();
|
|
|
|
+
|
|
public NiftyJmeDisplay(AssetManager assetManager,
|
|
public NiftyJmeDisplay(AssetManager assetManager,
|
|
InputSystem inputManager,
|
|
InputSystem inputManager,
|
|
AudioRenderer audioRenderer,
|
|
AudioRenderer audioRenderer,
|
|
@@ -90,8 +92,6 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void initialize(RenderManager rm, ViewPort vp) {
|
|
public void initialize(RenderManager rm, ViewPort vp) {
|
|
- ResourceLocationJmp resourceLocation = new ResourceLocationJmp();
|
|
|
|
- ResourceLoader.removeAllResourceLocations();
|
|
|
|
ResourceLoader.addResourceLocation(resourceLocation);
|
|
ResourceLoader.addResourceLocation(resourceLocation);
|
|
this.renderManager = rm;
|
|
this.renderManager = rm;
|
|
renderDev.setRenderManager(rm);
|
|
renderDev.setRenderManager(rm);
|
|
@@ -160,6 +160,7 @@ public class NiftyJmeDisplay extends com.jme3.niftygui.NiftyJmeDisplay implement
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void cleanup() {
|
|
public void cleanup() {
|
|
|
|
+ ResourceLoader.removeResourceLocation(resourceLocation);
|
|
inited = false;
|
|
inited = false;
|
|
// nifty.exit();
|
|
// nifty.exit();
|
|
}
|
|
}
|