Browse Source

Update styles.adoc

Removed unneeded new line breaks.
mitm001 9 năm trước cách đây
mục cha
commit
8dd6a3a25a

+ 8 - 8
src/docs/asciidoc/jme3/contributions/tonegodgui/styles.adoc

@@ -13,8 +13,8 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 
 
 === Understanding Styles
 === Understanding Styles
 
 
-The Style class is set up to be as open ended as possible for creating custom controls.+
-+
+The Style class is set up to be as open ended as possible for creating custom controls.
+
 Each property of a style can be one of the following data type:
 Each property of a style can be one of the following data type:
 
 
 *  String
 *  String
@@ -37,8 +37,8 @@ screen.getStyle(“StyleName”).getColorRGBA(“TagNameInStyle”);
 
 
 ----
 ----
 
 
-These can be used as flags for configuring you control, or style specific info for default Look & Feel+
-+
+These can be used as flags for configuring you control, or style specific info for default Look & Feel
+
 Lets look at the Button.xml file as an example:
 Lets look at the Button.xml file as an example:
 
 
 [source,htmlblock]
 [source,htmlblock]
@@ -164,6 +164,7 @@ screen.getStyle("styleName").getVector4f("ID");
 ----
 ----
 
 
 
 
+
 === The 'effects' Tag
 === The 'effects' Tag
 
 
 To add a default effect to a control, you would add a property tag under the 'effects' tag, like so:
 To add a default effect to a control, you would add a property tag under the 'effects' tag, like so:
@@ -184,8 +185,8 @@ Using Effects can be found HERE.
 
 
 === style_map.xml
 === style_map.xml
 
 
-The style_map.xml file consists of a list of all other XML documents that contain style information for controls. All other XMLdocs could very well could be a single XML document containing all styles, however, for organization purposes, I read in as many from this list as you would like to add.+
-+
+The style_map.xml file consists of a list of all other XML documents that contain style information for controls. All other XMLdocs could very well could be a single XML document containing all styles, however, for organization purposes, I read in as many from this list as you would like to add.
+
 Each entry in the style_map.xml file are formatted as follows:
 Each entry in the style_map.xml file are formatted as follows:
 
 
 [source,htmlblock]
 [source,htmlblock]
@@ -195,7 +196,6 @@ Each entry in the style_map.xml file are formatted as follows:
 
 
 ----
 ----
 
 
-
 [NOTE]
 [NOTE]
 ====
 ====
 The control= property is not enforced, it is their for you to keep track of what XML file is used for what control.
 The control= property is not enforced, it is their for you to keep track of what XML file is used for what control.
@@ -206,6 +206,7 @@ The control= property is not enforced, it is their for you to keep track of what
 === To set up a custom global Look & Feel for your UI
 === To set up a custom global Look & Feel for your UI
 
 
 
 
+
 ==== STEP 1: Copy the style_map.xml file to a local directory in your Project Assets folder.
 ==== STEP 1: Copy the style_map.xml file to a local directory in your Project Assets folder.
 
 
 [source,htmlblock]
 [source,htmlblock]
@@ -240,7 +241,6 @@ Screen screen = new Screen(this, "somePath/style_map.xml");
 
 
 ----
 ----
 
 
-+
 You can now copy the existing XML docs for each listed in the style_map.xml file and make the adjustments you would like as default styles.
 You can now copy the existing XML docs for each listed in the style_map.xml file and make the adjustments you would like as default styles.