|
@@ -18,13 +18,13 @@ You can "`draw`" the +++<abbr title="Graphical User Interface">GUI</abbr>+++ to
|
|
|
Sample project
|
|
|
|
|
|
* *Original Source Code:* link:https://github.com/nifty-gui/nifty-gui/tree/1.4/nifty-examples/src/main/java/de/lessvoid/nifty/examples/defaultcontrols[/nifty-examples/src/main/java/de/lessvoid/nifty/examples/defaultcontrols/].
|
|
|
-//* *Download demo project:* link:http://files.seapegasus.org/NiftyGuiDemo.zip[http://files.seapegasus.org/NiftyGuiDemo.zip] (jme3-ready) +
|
|
|
-//The full demo ZIP is based on `de.lessvoid.nifty.examples.controls.ControlsDemo.java`.
|
|
|
-//.. The demo is a SimpleApplication-based game (use e.g. the BasicGame template in the jMonkeyEngine SDK).
|
|
|
-//.. Copy images and sound files into your project's `assets/Interface/` directory. (In this example, I copied them from `nifty-default-controls-examples/trunk/src/main/resources/` to `assets/Interface/`).
|
|
|
-//.. Make sure to use paths relative to your project's `assets/` directory.
|
|
|
-//*** E.g. for .fnt/.png/.jpg files use filename `Interface/yang.png` not filename `yang.png`.
|
|
|
-//*** E.g. for .wav/.ogg files use filename `Interface/sounds/gong.wav` not filename `sounds/gong.wav`.
|
|
|
+* *Download demo project:* link:{attachmentsdir}/NiftyGuiDemo.zip[NiftyGuiDemo.zip] (jme3-ready) +
|
|
|
+The full demo ZIP is based on `de.lessvoid.nifty.examples.controls.ControlsDemo.java`.
|
|
|
+.. The demo is a SimpleApplication-based game (use e.g. the BasicGame template in the jMonkeyEngine SDK).
|
|
|
+.. Copy images and sound files into your project's `assets/Interface/` directory. (In this example, I copied them from `nifty-default-controls-examples/trunk/src/main/resources/` to `assets/Interface/`).
|
|
|
+.. Make sure to use paths relative to your project's `assets/` directory.
|
|
|
+*** E.g. for .fnt/.png/.jpg files use filename `Interface/yang.png` not filename `yang.png`.
|
|
|
+*** E.g. for .wav/.ogg files use filename `Interface/sounds/gong.wav` not filename `sounds/gong.wav`.
|
|
|
|
|
|
Just so you get a quick picture what Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++'s Java Syntax looks like, here is the most basic example. It creates a screen with a layer and a panel that contains a button.
|
|
|
|