Pārlūkot izejas kodu

Reformatted some xml examples.

mitm 7 gadi atpakaļ
vecāks
revīzija
c10e21ed5c

+ 14 - 9
src/docs/asciidoc/jme3/advanced/nifty_gui_xml_layout.adoc

@@ -169,9 +169,11 @@ The following panels go into in the `hud` screen's `foreground` layer:
   <!-- spacer -->
   <!-- spacer -->
 </panel>
 </panel>
 <panel id="panel_right" width="20%" height="100%" childLayout="vertical" backgroundColor="#00f8">
 <panel id="panel_right" width="20%" height="100%" childLayout="vertical" backgroundColor="#00f8">
-  <panel id="panel_top_right1" width="100%" height="15%" childLayout="center" backgroundColor="#00f8">
+  <panel id="panel_top_right1" width="100%" height="15%" childLayout="center"
+    backgroundColor="#00f8">
   </panel>
   </panel>
-  <panel id="panel_top_right2" width="100%" height="15%" childLayout="center" backgroundColor="#44f8">
+  <panel id="panel_top_right2" width="100%" height="15%" childLayout="center"
+    backgroundColor="#44f8">
   </panel>
   </panel>
   <panel id="panel_bot_right" width="100%" height="70%" valign="center" backgroundColor="#88f8">
   <panel id="panel_bot_right" width="100%" height="70%" valign="center" backgroundColor="#88f8">
   </panel>
   </panel>
@@ -199,7 +201,8 @@ link:https://github.com/jMonkeyEngine/wiki/blob/master/src/docs/images/jme3/adva
 ----
 ----
 
 
 <layer id="background" childLayout="center">
 <layer id="background" childLayout="center">
-    <image filename="Interface/start-background.png"></image>
+    <image filename="Interface/start-background.png">
+    </image>
 </layer>
 </layer>
 
 
 ----
 ----
@@ -210,7 +213,8 @@ The link:https://github.com/jMonkeyEngine/wiki/blob/master/src/docs/images/jme3/
 ----
 ----
 
 
 <layer id="background" childLayout="center">
 <layer id="background" childLayout="center">
-    <image filename="Interface/hud-frame.png"></image>
+    <image filename="Interface/hud-frame.png">
+    </image>
 </layer>
 </layer>
 
 
 ----
 ----
@@ -236,7 +240,7 @@ In the `hud` screen's `foreground` layer, add the following image element:
 
 
 <panel id="panel_top_right2" width="100%" height="15%" childLayout="center">
 <panel id="panel_top_right2" width="100%" height="15%" childLayout="center">
     <image filename="Interface/face1.png" valign="center" align="center" height="50%"
     <image filename="Interface/face1.png" valign="center" align="center" height="50%"
-      width="30%" >
+      width="30%">
     </image>
     </image>
 </panel>
 </panel>
 
 
@@ -349,7 +353,7 @@ Your screen.xml should look like this:
             </panel>
             </panel>
             <panel id="panel_mid" height="50%" width="75%" align="center" childLayout="center">
             <panel id="panel_mid" height="50%" width="75%" align="center" childLayout="center">
                 <text text="Here goes some text describing the game and the rules and stuff.
                 <text text="Here goes some text describing the game and the rules and stuff.
-                  Incidentally, the text is quite long and needs to wrap at the end of lines. ..."
+                  Incidentally, the text is quite long and needs to wrap at the end of lines."
                       font="Interface/Fonts/Default.fnt" width="100%" height="100%" wrap="true"/>
                       font="Interface/Fonts/Default.fnt" width="100%" height="100%" wrap="true"/>
             </panel>
             </panel>
             <panel id="panel_bottom" height="25%" width="75%" align="center"
             <panel id="panel_bottom" height="25%" width="75%" align="center"
@@ -372,7 +376,8 @@ Your screen.xml should look like this:
     <screen id="hud">
     <screen id="hud">
         <layer id="background" childLayout="center">
         <layer id="background" childLayout="center">
             <image filename="Interface/hud-frame.png"
             <image filename="Interface/hud-frame.png"
-              imageMode="resize:40,490,110,170,40,560,40,270,40,560,40,40" width="100%" height="100%">
+              imageMode="resize:40,490,110,170,40,560,40,270,40,560,40,40" width="100%"
+              height="100%">
             </image>
             </image>
         </layer>
         </layer>
         <layer id="foreground" childLayout="horizontal">
         <layer id="foreground" childLayout="horizontal">
@@ -380,11 +385,11 @@ Your screen.xml should look like this:
             </panel>
             </panel>
             <panel id="panel_right" width="20%" height="100%" childLayout="vertical">
             <panel id="panel_right" width="20%" height="100%" childLayout="vertical">
                 <panel id="panel_top_right1" width="100%" height="15%" childLayout="center">
                 <panel id="panel_top_right1" width="100%" height="15%" childLayout="center">
-                    <control name="label" color="#000" text="123" width="100%" height="100%" />
+                    <control name="label" color="#000" text="123" width="100%" height="100%"/>
                 </panel>
                 </panel>
                 <panel id="panel_top_right2" width="100%" height="15%" childLayout="center">
                 <panel id="panel_top_right2" width="100%" height="15%" childLayout="center">
                     <image filename="Interface/face1.png" valign="center" align="center"
                     <image filename="Interface/face1.png" valign="center" align="center"
-                      height="50%" width="30%" >
+                      height="50%" width="30%">
                     </image>
                     </image>
                 </panel>
                 </panel>
                 <panel id="panel_bot_right" width="100%" height="70%" valign="center">
                 <panel id="panel_bot_right" width="100%" height="70%" valign="center">