|
|
@@ -14,9 +14,9 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
* They provide a default label (which is only added if the label text is set).
|
|
|
* They provide the abstract method onChange for executing code when the CheckBox is altered by the user.
|
|
|
|
|
|
-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]
|
|
|
----
|
|
|
@@ -31,7 +31,7 @@ CheckBox cb = new CheckBox(screen, “cb”, new Vector2f(15, 15));
|
|
|
|
|
|
----
|
|
|
|
|
|
-*Constructor 2:*+
|
|
|
+*Constructor 2:*
|
|
|
|
|
|
[source,java]
|
|
|
----
|
|
|
@@ -45,7 +45,7 @@ CheckBox cb = new CheckBox(screen, “cb”, new Vector2f(15, 15),
|
|
|
|
|
|
----
|
|
|
|
|
|
-*Constructor 3:*+
|
|
|
+*Constructor 3:*
|
|
|
|
|
|
[source,java]
|
|
|
----
|
|
|
@@ -63,6 +63,7 @@ CheckBox cb = new CheckBox(screen, “cb”, new Vector2f(15, 15), new Vector2f(
|
|
|
----
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Hover State
|
|
|
|
|
|
You can override the default hover state using the following method:
|
|
|
@@ -76,6 +77,7 @@ cb.setButtonHoverInfo(String imagePath, ColorRGBA textHoverColor);
|
|
|
----
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Pressed State
|
|
|
|
|
|
You can override the default pressed state using the following method:
|
|
|
@@ -89,6 +91,7 @@ cb.setButtonPressedInfo(String imagePath, ColorRGBA textPressedColor);
|
|
|
----
|
|
|
|
|
|
|
|
|
+
|
|
|
=== Abstract Event Methods:
|
|
|
|
|
|
[source,java]
|