mitm001 5 anos atrás
pai
commit
9866d6eddc

+ 15 - 19
docs/modules/core/pages/cinematic/cinematics.adoc

@@ -1,24 +1,20 @@
 = JME3 Cinematics
-:author: 
-:revnumber: 
-:revdate: 2016/03/17 20:48
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
+:revnumber: 2.0
+:revdate: 2016/07/24
 
 
-JME3 cinematics (com.jme.cinematic) allow you to remote control nodes and cameras in a 3D game: You can script and and play cinematic scenes. You can use cinematics to create link:http://en.wikipedia.org/wiki/Cutscene[cutscenes] and movies/trailers for your game. Another good use case is efficient “destruction physics: Playing back prerecorded flying pieces of debris for demolitions is much faster than calculating them with live physics.
+JME3 cinematics (com.jme.cinematic) allow you to remote control nodes and cameras in a 3D game: You can script and and play cinematic scenes. You can use cinematics to create link:http://en.wikipedia.org/wiki/Cutscene[cutscenes] and movies/trailers for your game. Another good use case is efficient "`destruction`" physics: Playing back prerecorded flying pieces of debris for demolitions is much faster than calculating them with live physics.
 
-Internally, Cinematics are implemented as <<jme3/advanced/application_states#,AppStates>>. 
+Internally, Cinematics are implemented as <<jme3/advanced/application_states#,AppStates>>.
 
 Short overview of the cinematic process:
 
 .  Plan the script of your movie. +
 Write down a timeline (e.g. on paper) of which character should be at which spot at which time.
 .  Attach the scene objects that you want to remote-control to one Node. +
-This Node can be the rootNode, or a Node that is attached to the rootNode. 
+This Node can be the rootNode, or a Node that is attached to the rootNode.
 .  Create a Cinematic object for this movie scene. The Cinematic will contain and manage the movie script.
-.  For each line in your script (for each keyframe in your timeline), add a CinematicEvent to the Cinematic. 
+.  For each line in your script (for each keyframe in your timeline), add a CinematicEvent to the Cinematic.
 
 
 == Sample Code
@@ -28,7 +24,7 @@ This Node can be the rootNode, or a Node that is attached to the rootNode.
 
 == How to Use a Cinematic
 
-A Cinematic is like a movie script for a node. 
+A Cinematic is like a movie script for a node.
 
 [source,java]
 ----
@@ -46,11 +42,11 @@ stateManager.attach(cinematic);
 **  `duration` is the duration of the whole scene in seconds.
 **  Each Cinematic is a set of CinematicEvents, that are triggered at a given moment on the timeline.
 
-.  Create one CinematicEvent for each line of your movie script.  
+.  Create one CinematicEvent for each line of your movie script.
 **  `event` is one motion of a moving object. You can add several events. More details below.
 **  `starttime` is the time when this particular cinematic event starts on the timeline. Specify the start time in seconds since the beginning of the cinematic.
 
-.  Attach the Cinematic to the SimpleApplication's stateManager. 
+.  Attach the Cinematic to the SimpleApplication's stateManager.
 .  Play, stop and pause the Cinematic from your code.
 
 [cols="2", options="header"]
@@ -83,13 +79,13 @@ a|Events(CinematicEvents)
 a|Description
 
 a|MotionEvent
-a|Use a MotionEvent to move a Spatial non-linearly over time. A MotionEvent is based on a list of waypoints in a MotionPath. The curve goes through each waypoint, and you can adjust the tension of the curve to modify the roundedness of the path. This is the motion interpolation you are going to use in most cases. 
+a|Use a MotionEvent to move a Spatial non-linearly over time. A MotionEvent is based on a list of waypoints in a MotionPath. The curve goes through each waypoint, and you can adjust the tension of the curve to modify the roundedness of the path. This is the motion interpolation you are going to use in most cases.
 
 a|SoundEvent
 a|Use a SoundEvent to play a <<jme3/advanced/audio#,sound>> at a given time for the given duration.
 
 a|GuiEvent
-a|Displays a <<jme3/advanced/nifty_gui#,Nifty GUI>> at a given time for the given duration. Use it to display subtitles or HUD elements. Bind the Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ XML to the cinematic using `cinematic.bindUi(“path/to/nifty/file.xml);`
+a|Displays a xref:gui/nifty_gui.adoc[Nifty GUI] at a given time for the given duration. Use it to display subtitles or HUD elements. Bind the Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ XML to the cinematic using `cinematic.bindUi("path/to/nifty/file.xml");`
 
 a|AnimationEvent
 a|Use this to start playing a model <<jme3/advanced/animation#,animation>> at a given time (a character walking animation for example)
@@ -160,7 +156,7 @@ Most likely you remote-control more than one object in your scene. Give the even
 
 === SoundEvent
 
-A SoundEventplays a sound as part of the cinematic. 
+A SoundEventplays a sound as part of the cinematic.
 
 [source,java]
 ----
@@ -169,7 +165,7 @@ SoundEvent( audioPath, isStream, duration, loopMode )
 
 Details of the constructor:
 
-*  `audioPath` is the path to an audio file as String, e.g. “Sounds/mySound.wav.
+*  `audioPath` is the path to an audio file as String, e.g. "`Sounds/mySound.wav`".
 *  `isStream` toggles between streaming and buffering. Set to true to stream long audio file, set to false to play short buffered sounds.
 *  `duration` is the time that it should take to play.
 *  `loopMode` can be LoopMode.Loop, LoopMode.DontLoop, LoopMode.Cycle.
@@ -193,7 +189,7 @@ cinematic.bindUi("Interface/subtitle.xml");
 
 Details of the constructor:
 
-*  `screen` is the name of the Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ screen to load, as String. 
+*  `screen` is the name of the Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ screen to load, as String.
 *  `duration` is the time that it should take to play.
 *  `loopMode` can be LoopMode.Loop, LoopMode.DontLoop, LoopMode.Cycle.
 
@@ -241,7 +237,7 @@ In the above example, I want it to be a top view of the scene looking at the wor
 
 ----
 
-Then i just have to schedule its activation in the cinematic. I want it to get activated 3 seconds after the start of the cinematic so I just have to do 
+Then i just have to schedule its activation in the cinematic. I want it to get activated 3 seconds after the start of the cinematic so I just have to do
 
 [source,java]
 ----

+ 3 - 7
docs/modules/core/pages/gui/nifty_gui_best_practices.adoc

@@ -1,15 +1,11 @@
 = Nifty GUI - Best Practices
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
+:revnumber: 2.0
+:revdate: 2020/07/24
 
 
 This page is a short list of best practices that you should know of when starting to use Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++. The JME3 tutorials focus on JME3-Nifty integration related details. You will find more features in the link:https://github.com/nifty-gui/nifty-gui/raw/1.4/nifty-core/manual/nifty-gui-the-manual-1.3.2.pdf[Nifty GUI Manual].
 
-.  <<jme3/advanced/nifty_gui#,Nifty GUI Concepts>>
+.  xref:gui/nifty_gui.adoc[Nifty GUI Concepts]
 .  *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ 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 <<jme3/advanced/nifty_gui_projection#,Nifty GUI Projection>>

+ 4 - 9
docs/modules/core/pages/gui/nifty_gui_java_interaction.adoc

@@ -1,15 +1,10 @@
 = Interacting with the GUI from Java
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
+:revnumber: 2.0
+:revdate: 2020/07/24
 :keywords: gui, documentation, input, control, hud, nifty
-:relfileprefix: ../../
-:imagesdir: ../..
-:experimental:
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 
 
-.  <<jme3/advanced/nifty_gui#,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 <<jme3/advanced/nifty_gui_java_layout#,Nifty GUI Java Layout>>
 .  <<jme3/advanced/nifty_gui_overlay#,Nifty GUI Overlay>> or <<jme3/advanced/nifty_gui_projection#,Nifty GUI Projection>>
@@ -352,4 +347,4 @@ You're done with the basic Nifty +++<abbr title="Graphical User Interface">GUI</
 
 *  <<jme3/advanced/nifty_gui_scenarios#, Nifty GUI Scenarios>>
 *  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]
-*  link:https://github.com/nifty-gui/nifty-gui/wiki/Controls[Controls] 
+*  link:https://github.com/nifty-gui/nifty-gui/wiki/Controls[Controls]

+ 3 - 3
docs/modules/core/pages/gui/nifty_gui_java_layout.adoc

@@ -1,10 +1,10 @@
 = Laying Out the GUI in Java
-:revnumber: 2.0
-:revdate: 2020/07/23
+:revnumber: 2.1
+:revdate: 2020/07/24
 :keywords: gui, documentation, nifty, hud
 
 
-.  <<jme3/advanced/nifty_gui#,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>>

+ 1 - 1
docs/modules/core/pages/gui/nifty_gui_overlay.adoc

@@ -4,7 +4,7 @@
 :keywords: gui, documentation, nifty, hud
 
 
-.  <<jme3/advanced/nifty_gui#,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 <<jme3/advanced/nifty_gui_java_layout#,Nifty GUI Java Layout>>
 .  *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ Overlay* or <<jme3/advanced/nifty_gui_projection#,Nifty GUI Projection>>

+ 1 - 1
docs/modules/core/pages/gui/nifty_gui_projection.adoc

@@ -4,7 +4,7 @@
 :keywords: gui, documentation, nifty, hud, texture
 
 
-.  <<jme3/advanced/nifty_gui#,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 <<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*

+ 6 - 10
docs/modules/core/pages/gui/nifty_gui_scenarios.adoc

@@ -1,16 +1,12 @@
 = Nifty GUI 1.4.2 - Usecase Scenarios
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
+:revnumber: 2.0
+:revdate: 2020/07/24
 :keywords: gui, documentation, nifty, hud, click, state, states, sound, effect
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 
 
 This document contains typical NiftyGUI usecase scenarios, such as adding effects, game states, and creating typical game screens.
 
-Requirements: These tips assume that you have read and understood the <<jme3/advanced/nifty_gui#,Creating JME3 User Interfaces with Nifty GUI>> tutorial, and have already laid out a basic +++<abbr title="Graphical User Interface">GUI</abbr>+++ that interacts with your JME3 application. Here you learn how you integrate the +++<abbr title="Graphical User Interface">GUI</abbr>+++ better, and add effects and advanced controls.
+Requirements: These tips assume that you have read and understood the xref:gui/nifty_gui.adoc[Creating JME3 User Interfaces with Nifty GUI] tutorial, and have already laid out a basic +++<abbr title="Graphical User Interface">GUI</abbr>+++ that interacts with your JME3 application. Here you learn how you integrate the +++<abbr title="Graphical User Interface">GUI</abbr>+++ better, and add effects and advanced controls.
 
 
 == Switch Game States
@@ -143,10 +139,10 @@ a|${ENV.HOME}
 a| Returns the path to user's home directory.
 
 a|${ENV.key}
-a| Looks up `key` in the environment variables. Use it like Java's System.getEnv(“key).
+a| Looks up `key` in the environment variables. Use it like Java's System.getEnv("key").
 
 a|${PROP.key}
-a| looks up `key` in the Nifty properties. Use Nifty.setGlobalproperties(properties) and Nifty.getGlobalproperties(“key). Or SystemGetProperties(key);
+a| looks up `key` in the Nifty properties. Use Nifty.setGlobalproperties(properties) and Nifty.getGlobalproperties("key"). Or SystemGetProperties(key);
 
 |===
 
@@ -315,7 +311,7 @@ Inside myCustomStyles.xml you define styles like this:
 
 ----
 
-Learn more about how to create styles by looking at the link:https://github.com/nifty-gui/nifty-gui/wiki/Working-from-Source[Nifty GUI source code] for “nifty-style-black”. Copy it as a template and change it to create your own style.
+Learn more about how to create styles by looking at the link:https://github.com/nifty-gui/nifty-gui/wiki/Working-from-Source[Nifty GUI source code] for "`nifty-style-black`". Copy it as a template and change it to create your own style.
 
 '''
 

+ 1 - 1
docs/modules/core/pages/gui/nifty_gui_xml_layout.adoc

@@ -4,7 +4,7 @@
 :keywords: gui, documentation, nifty, hud
 
 
-.  <<jme3/advanced/nifty_gui#,Nifty GUI Concepts>>
+.  xref:gui/nifty_gui.adoc[Nifty GUI Concepts]
 .  <<jme3/advanced/nifty_gui_best_practices#,Nifty GUI Best Practices>>
 .  *Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ XML Layout* or <<jme3/advanced/nifty_gui_java_layout#,Nifty GUI Java Layout>>
 .  <<jme3/advanced/nifty_gui_overlay#,Nifty GUI Overlay>> or <<jme3/advanced/nifty_gui_projection#,Nifty GUI Projection>>

+ 5 - 9
docs/modules/core/pages/ui/hud.adoc

@@ -1,11 +1,7 @@
 = Head-Up Display (HUD)
-:author:
-:revnumber:
-:revdate: 2016/03/17 20:48
+:revnumber: 2.0
+:revdate: 2020/07/24
 :keywords: gui, display, documentation, hud
-:relfileprefix: ../../
-:imagesdir: ../..
-ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 
 
 ////
@@ -34,7 +30,7 @@ a|Easy to learn. jMonkeyEngine built-in +++<abbr title="Application Programming
 a|Only basic features. +
 You will have to write custom controls / buttons / effects if you need them.
 
-a|Use advanced <<jme3/advanced/nifty_gui#,Nifty GUI>> integration:
+a|Use advanced xref:gui/nifty_gui.adoc[Nifty GUI] integration:
 a|Full-featured interactive user interface. +
 Includes buttons, effects, controls. +
 Supports XML and Java layouts.
@@ -158,7 +154,7 @@ public void simpleUpdate(float tpf) {
 
 == Advanced HUD: Nifty GUI
 
-The recommended approach to create HUDs is using <<jme3/advanced/nifty_gui#,Nifty GUI>>.
+The recommended approach to create HUDs is using xref:gui/nifty_gui.adoc[Nifty GUI].
 
 .  Lay out the +++<abbr title="Graphical User Interface">GUI</abbr>+++ in one or several Nifty XML or Java files.
 .  Write the controller classes in Java.
@@ -166,7 +162,7 @@ The recommended approach to create HUDs is using <<jme3/advanced/nifty_gui#,Nift
 
 The advantage of Nifty +++<abbr title="Graphical User Interface">GUI</abbr>+++ is that it is well integrated into jME and the jMonkeyEngine SDK, and that it offers all the features that you expect from a professional modern user interface.
 
-For HUDs, you basically follow the same instructions as for creating a normal <<jme3/advanced/nifty_gui#,Nifty GUI>>, you just don't pause the game while the HUD is up.
+For HUDs, you basically follow the same instructions as for creating a normal xref:gui/nifty_gui.adoc[Nifty GUI], you just don't pause the game while the HUD is up.
 
 
 == See also