|
|
@@ -46,9 +46,6 @@ public class StartScreenState extends BaseAppState implements ScreenController {
|
|
|
private Node localGuiNode = new Node("Start Screen GuiNode");
|
|
|
private final ColorRGBA backgroundColor = ColorRGBA.Gray;
|
|
|
|
|
|
- public StartScreenState() {
|
|
|
- }
|
|
|
-
|
|
|
@Override
|
|
|
protected void initialize(Application app) {
|
|
|
//It is technically safe to do all initialization and cleanup in the
|
|
|
@@ -122,7 +119,7 @@ your ScreenController in the controller attribute of the <screen> tag in the xml
|
|
|
|
|
|
public class TestNiftyGui extends SimpleApplication {
|
|
|
public void simpleInitApp() {
|
|
|
- StartScreenState startScreenState = new StartScreenState(this);
|
|
|
+ StartScreenState startScreenState = new StartScreenState();
|
|
|
stateManager.attach(startScreenState);
|
|
|
// [...] boilerplate init nifty omitted
|
|
|
nifty.fromXml("Interface/myGui.xml", "start", startScreenState); //one of the XML screen elements needs to reference StartScreenState controller class
|
|
|
@@ -199,7 +196,7 @@ Here is an example that moves a panel when the startScreen opens. You place an &
|
|
|
Learn more from the NiftyGUI page:
|
|
|
|
|
|
* link:https://github.com/nifty-gui/nifty-gui/raw/1.4/nifty-core/manual/nifty-gui-the-manual-1.3.2.pdf[Nifty GUI - the Manual: Effects]
|
|
|
-* link:https://github.com/nifty-gui/nifty-gui/wiki/Effects[Effects]
|
|
|
+* link:https://github.com/nifty-gui/nifty-gui/wiki/Effects[Effects]
|
|
|
|
|
|
|
|
|
== Add Sound Effects
|