Currently VariableTimestepGame does not implement the getNewSettings() method, which breaks for example TestFadeInOutTransientEffect.
(its the only test which uses VariableTimestepGame)
Index: src/com/jme/app/VariableTimestepGame.java
===================================================================
--- src/com/jme/app/VariableTimestepGame.java (revision 4107)
+++ src/com/jme/app/VariableTimestepGame.java (working copy)
@@ -36,8 +36,9 @@
import java.util.logging.Logger;
import com.jme.input.InputSystem;
+import com.jme.system.GameSettings;
+import com.jme.system.PropertiesGameSettings;
import com.jme.util.Timer;
-import com.jme.system.GameSettings;
/**
* A game that tracks time between frames.
@@ -174,10 +175,9 @@
protected abstract void cleanup();
/**
- * TODO: Implement
* @see AbstractGame#getNewSettings
*/
protected GameSettings getNewSettings() {
- return null;
+ return new PropertiesGameSettings("properties.cfg");
}
}
And to make the Monkey appear in the Settings dialog in TestFadeInOutTransientEffect:
Index: src/jmetest/effects/transients/TestFadeInOutTransientEffect.java
===================================================================
--- src/jmetest/effects/transients/TestFadeInOutTransientEffect.java (revision 4107)
+++ src/jmetest/effects/transients/TestFadeInOutTransientEffect.java (working copy)
@@ -179,7 +179,8 @@
public static void main(String[] args) {
TestFadeInOutTransientEffect app = new TestFadeInOutTransientEffect();
- app.setConfigShowMode(ConfigShowMode.AlwaysShow);
+ app.setConfigShowMode(ConfigShowMode.AlwaysShow,
+ TestFadeInOutTransientEffect.class.getResource("/jmetest/data/images/Monkey.png"));
app.start();
}
}