浏览代码

Added tip on printing settings.

mitm 7 年之前
父节点
当前提交
ce31cdc548
共有 1 个文件被更改,包括 6 次插入3 次删除
  1. 6 3
      src/docs/asciidoc/jme3/intermediate/appsettings.adoc

+ 6 - 3
src/docs/asciidoc/jme3/intermediate/appsettings.adoc

@@ -36,7 +36,7 @@ public static void main(String[] args) {
 
 Set the boolean in the AppSettings contructor to true if you want to keep the default settings for values that you do not specify. Set this parameter to false if you want the application to load user settings from previous launches. In either case you can still customize individual settings.
 
-WARNING: The settings are saved based on the title of your game (default = "`jMonkey Engine 3.x-stable`"). This means that if you have not changed the default title, then remove a setting method call, your settings changes will remain in effect for all projects using the default title. To prevent this, change the title for your game first or remember to change the settings back to their link:https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/system/AppSettings.java#L213[default] and run the project again.
+WARNING: The settings are saved based on the title of your game (default = "`jMonkey Engine 3.x-stable`"). This means that if you have not changed the default title, then remove a setting method call, your settings changes will remain in effect for all projects using the default title. To prevent this, set the title for your game or remember to change the settings back to their link:https://github.com/jMonkeyEngine/jmonkeyengine/blob/master/jme3-core/src/main/java/com/jme3/system/AppSettings.java#L213[default] and run the project again.
 
 This example toggles the settings to fullscreen while the game is already running. Then it restarts the game context (not the whole game) which applies the changed settings.
 
@@ -58,8 +58,11 @@ public void toggleToFullscreen() {
 [TIP]
 ====
 To view your current settings, use the System class.
-
-`System.out.println(settings);`
+[code, java]
+----
+AppSettings settings = new AppSettings(true);
+System.out.println(settings);
+----
 ====
 
 == Properties