|
@@ -5,10 +5,10 @@
|
|
|
|
|
|
|
|
|
|
. xref:gui/nifty_gui.adoc[Nifty GUI Concepts]
|
|
. 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 *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ Java Layout*
|
|
|
|
-. <<jme3/advanced/nifty_gui_overlay#,Nifty GUI Overlay>> or <<jme3/advanced/nifty_gui_projection#,Nifty GUI 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 *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ Java Layout*
|
|
|
|
+. xref:gui/nifty_gui_overlay.adoc[Nifty GUI Overlay] or xref:gui/nifty_gui_projection.adoc[Nifty GUI Projection]
|
|
|
|
+. xref:gui/nifty_gui_java_interaction.adoc[Interact with the GUI from Java]
|
|
|
|
|
|
You can "`draw`" the +++<abbr title="Graphical User Interface">GUI</abbr>+++ to the screen by writing Java code – alternatively to using XML. Typically you lay out the static base +++<abbr title="Graphical User Interface">GUI</abbr>+++ in XML, and use Java commands if you need to change the +++<abbr title="Graphical User Interface">GUI</abbr>+++ dynamically at runtime. In theory, you can also lay out the whole +++<abbr title="Graphical User Interface">GUI</abbr>+++ in Java (but we don't cover that here).
|
|
You can "`draw`" the +++<abbr title="Graphical User Interface">GUI</abbr>+++ to the screen by writing Java code – alternatively to using XML. Typically you lay out the static base +++<abbr title="Graphical User Interface">GUI</abbr>+++ in XML, and use Java commands if you need to change the +++<abbr title="Graphical User Interface">GUI</abbr>+++ dynamically at runtime. In theory, you can also lay out the whole +++<abbr title="Graphical User Interface">GUI</abbr>+++ in Java (but we don't cover that here).
|
|
|
|
|
|
@@ -134,7 +134,7 @@ public class MyStartScreen extends BaseAppState {
|
|
image::gui/gui-layout-draft.png[gui-layout-draft.png,width="",height="",align="left"]
|
|
image::gui/gui-layout-draft.png[gui-layout-draft.png,width="",height="",align="left"]
|
|
|
|
|
|
|
|
|
|
-In this tutorial, you recreate the same screen as in the <<jme3/advanced/nifty_gui_xml_layout#, Laying out the GUI in XML>> example.
|
|
|
|
|
|
+In this tutorial, you recreate the same screen as in the xref:gui/nifty_gui_xml_layout.adoc[ Laying out the GUI in XML] example.
|
|
|
|
|
|
Create an Screen.Java file that extends BaseAppState in the mygame directory of your project. One Java file can contain several, or even all screens. As a reminder: Nifty displays one screen at a time; a screen contains several layers on top of one another; each layer contains panels that are embedded into another; the panels contain the actual content (text, images, or controls).
|
|
Create an Screen.Java file that extends BaseAppState in the mygame directory of your project. One Java file can contain several, or even all screens. As a reminder: Nifty displays one screen at a time; a screen contains several layers on top of one another; each layer contains panels that are embedded into another; the panels contain the actual content (text, images, or controls).
|
|
|
|
|
|
@@ -870,5 +870,5 @@ nifty.registerMouseCursor("hand", "Interface/mouse-cursor-hand.png", 5, 4);
|
|
|
|
|
|
Integrate the +++<abbr title="Graphical User Interface">GUI</abbr>+++ into the game. Typically, you will overlay the +++<abbr title="Graphical User Interface">GUI</abbr>+++.
|
|
Integrate the +++<abbr title="Graphical User Interface">GUI</abbr>+++ into the game. Typically, you will overlay the +++<abbr title="Graphical User Interface">GUI</abbr>+++.
|
|
|
|
|
|
-* <<jme3/advanced/nifty_gui_overlay#,Nifty GUI Overlay>> (recommended)
|
|
|
|
-* <<jme3/advanced/nifty_gui_projection#,Nifty GUI Projection>> (optional)
|
|
|
|
|
|
+* xref:gui/nifty_gui_overlay.adoc[Nifty GUI Overlay] (recommended)
|
|
|
|
+* xref:gui/nifty_gui_projection.adoc[Nifty GUI Projection] (optional)
|