|
@@ -5,16 +5,16 @@
|
|
|
|
|
|
|
|
|
. xref:gui/nifty_gui.adoc[Nifty GUI Concepts]
|
|
|
-. <<jme3/advanced/nifty_gui_best_practices#,Nifty GUI Best Practices>>
|
|
|
-. <<jme3/advanced/nifty_gui_xml_layout#,Nifty GUI XML Layout>> or <<jme3/advanced/nifty_gui_java_layout#,Nifty GUI Java Layout>>
|
|
|
-. <<jme3/advanced/nifty_gui_overlay#,Nifty GUI Overlay>> or *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ Projection*
|
|
|
-. <<jme3/advanced/nifty_gui_java_interaction#,Interact with the GUI from Java>>
|
|
|
+. xref:gui/nifty_gui_best_practices.adoc[Nifty GUI Best Practices]
|
|
|
+. xref:gui/nifty_gui_xml_layout.adoc[Nifty GUI XML Layout] or xref:gui/nifty_gui_java_layout.adoc[Nifty GUI Java Layout]
|
|
|
+. xref:gui/nifty_gui_overlay.adoc[Nifty GUI Overlay] or *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ Projection*
|
|
|
+. xref:gui/nifty_gui_java_interaction.adoc[Interact with the GUI from Java]
|
|
|
|
|
|
|
|
|
image::gui/nifty-gui.png[nifty-gui.png,width="310",height="250",align="left"]
|
|
|
|
|
|
|
|
|
-Typically you define a key (for example escape) to switch the +++<abbr title="Graphical User Interface">GUI</abbr>+++ on and off. Then you <<jme3/advanced/nifty_gui_overlay#,overlay>> the running game with the +++<abbr title="Graphical User Interface">GUI</abbr>+++ (you will most likely pause the game then).
|
|
|
+Typically you define a key (for example escape) to switch the +++<abbr title="Graphical User Interface">GUI</abbr>+++ on and off. Then you xref:gui/nifty_gui_overlay.adoc[overlay] the running game with the +++<abbr title="Graphical User Interface">GUI</abbr>+++ (you will most likely pause the game then).
|
|
|
|
|
|
Alternatively, you can also project the +++<abbr title="Graphical User Interface">GUI</abbr>+++ as a texture onto a mesh textures inside the game. Allthough this looks cool and “immersive, this approach is rarely used since it is difficult to record clicks this way. You can only interact with this projected +++<abbr title="Graphical User Interface">GUI</abbr>+++ by keyboard, or programmatically. You can select input fields using the arrow keys, and trigger actions using the return key.
|
|
|
|
|
@@ -63,7 +63,7 @@ rootNode.attachChild(geom);
|
|
|
|
|
|
----
|
|
|
|
|
|
-The MySettingsScreen class is a custom de.lessvoid.nifty.screen.ScreenController in which you implement your +++<abbr title="Graphical User Interface">GUI</abbr>+++ behaviour. The variable `data` contains an object that you use to exchange state info with the game. See <<jme3/advanced/nifty_gui_java_interaction#,Nifty GUI Java Interaction>> for details on how to create this class.
|
|
|
+The MySettingsScreen class is a custom de.lessvoid.nifty.screen.ScreenController in which you implement your +++<abbr title="Graphical User Interface">GUI</abbr>+++ behaviour. The variable `data` contains an object that you use to exchange state info with the game. See xref:gui/nifty_gui_java_interaction.adoc[Nifty GUI Java Interaction] for details on how to create this class.
|
|
|
|
|
|
Run the code sample. You select buttons on this +++<abbr title="Graphical User Interface">GUI</abbr>+++ with the arrow keys and then press return. Note that clicking on the texture will not work!
|
|
|
|
|
@@ -72,4 +72,4 @@ Run the code sample. You select buttons on this +++<abbr title="Graphical User I
|
|
|
|
|
|
Now that you have layed out and integrated the +++<abbr title="Graphical User Interface">GUI</abbr>+++ in your app, you want to respond to user input and display the current game.
|
|
|
|
|
|
-* <<jme3/advanced/nifty_gui_java_interaction#,Interact with the GUI from Java>>
|
|
|
+* xref:gui/nifty_gui_java_interaction.adoc[Interact with the GUI from Java]
|