|
@@ -10,11 +10,11 @@ ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
== DialogBox Class
|
|
== DialogBox Class
|
|
|
|
|
|
|
|
-The DialogBox extends AlertBox adding a Cancel button with event handlers.+
|
|
|
|
|
-+
|
|
|
|
|
|
|
+The DialogBox extends AlertBox adding a Cancel button with event handlers.
|
|
|
|
|
+
|
|
|
It utilizes the 3 standard constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
|
|
It utilizes the 3 standard constructors as shown in the <<jme3/contributions/tonegodgui/quickstart#,Quick Start Guide>>.
|
|
|
|
|
|
|
|
-*Constructor 1:*+
|
|
|
|
|
|
|
+*Constructor 1:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -29,7 +29,7 @@ DialogBox dialog = new DialogBox(screen, “dialog”, new Vector2f(15, 15));
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 2:*+
|
|
|
|
|
|
|
+*Constructor 2:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
@@ -43,7 +43,7 @@ DialogBox dialog = new DialogBox(screen, “dialog”, new Vector2f(15, 15),
|
|
|
|
|
|
|
|
----
|
|
----
|
|
|
|
|
|
|
|
-*Constructor 3:*+
|
|
|
|
|
|
|
+*Constructor 3:*
|
|
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|