Преглед изворни кода

Update button.adoc

Fixed broken new lines.
Fixed broken tip list.
mitm001 пре 9 година
родитељ
комит
ed2283f69f
1 измењених фајлова са 8 додато и 13 уклоњено
  1. 8 13
      src/docs/asciidoc/jme3/contributions/tonegodgui/button.adoc

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

@@ -18,9 +18,9 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
 *  They have default effects set for Hover, Pressed & LoseFocus
 *  Buttons are an abstract class providing methods for handling user input
 
-Again, the same three options for constructor are available as show in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.+
-+
-*Constructor 1:*+
+Again, the same three options for constructor are available as show in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
+
+*Constructor 1:*
 
 [source,java]
 ----
@@ -35,7 +35,7 @@ Button button = new Button(screen, “button”, new Vector2f(15, 15));
 
 ----
 
-*Constructor 2:*+
+*Constructor 2:*
 
 [source,java]
 ----
@@ -49,7 +49,7 @@ Button button = new Button(screen, “button”, new Vector2f(15, 15),
 
 ----
 
-*Constructor 3:*+
+*Constructor 3:*
 
 [source,java]
 ----
@@ -143,8 +143,6 @@ button.setInterval(float intervalsPerSecond); // 0 deactivates
 [NOTE]
 ====
 When not otherwise specified, use the primitive Element method for setting the text of a control. For instance, to set the text of the Button instance, you simply call:
-====
-
 
 [source,java]
 ----
@@ -152,16 +150,13 @@ When not otherwise specified, use the primitive Element method for setting the t
 button.setText(String text);
 
 ----
+====
 
 
-== ButtonAdapter Class
 
+== ButtonAdapter Class
 
-[TIP]
-====
-Tips for using the Button class
-====
-
+Tips for using the Button class:
 
 .  Create a button
 .  Implement all abstract methods