|
@@ -1,12 +1,7 @@
|
|
|
= Integrating Nifty GUI: Overlay
|
|
|
-:author:
|
|
|
-:revnumber:
|
|
|
-:revdate: 2016/03/17 20:48
|
|
|
+:revnumber: 2.0
|
|
|
+:revdate: 2020/07/23
|
|
|
:keywords: gui, documentation, nifty, hud
|
|
|
-:relfileprefix: ../../
|
|
|
-:imagesdir: ../..
|
|
|
-:experimental:
|
|
|
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
. <<jme3/advanced/nifty_gui#,Nifty GUI Concepts>>
|
|
@@ -16,7 +11,7 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
. <<jme3/advanced/nifty_gui_java_interaction#,Interact with the GUI from Java>>
|
|
|
|
|
|
|
|
|
-image::jme3/advanced/nifty-gui-example.png[nifty-gui-example.png,width="300",height="200",align="left"]
|
|
|
+image::gui/nifty-gui-example.png[nifty-gui-example.png,width="300",height="200",align="left"]
|
|
|
|
|
|
|
|
|
Typically, you define a key (for example escape) that switches the +++<abbr title="Graphical User Interface">GUI</abbr>+++ on and off. The +++<abbr title="Graphical User Interface">GUI</abbr>+++ can be a StartScreen, OptionsScreen, CharacterCreationScreen, etc. While the +++<abbr title="Graphical User Interface">GUI</abbr>+++ is up, you pause the running game, and then overlay the +++<abbr title="Graphical User Interface">GUI</abbr>+++. You also must switch to a different set of user inputs while the game is paused, so the player can use the mouse pointer and keyboard to interact with the +++<abbr title="Graphical User Interface">GUI</abbr>+++.
|