|
@@ -133,7 +133,7 @@ Delete all from the file and add following code.
|
|
----
|
|
----
|
|
|
|
|
|
In a layer, you can now add panels and arrange them. Panels are containers that mark the areas where you want to display text, images, or controls (buttons etc) later. To connect a screen with a ScreenController you need to specify the fully qualified class name of
|
|
In a layer, you can now add panels and arrange them. Panels are containers that mark the areas where you want to display text, images, or controls (buttons etc) later. To connect a screen with a ScreenController you need to specify the fully qualified class name of
|
|
-your ScreenController in the controller attribute of the <screen> tag. For this example, we use the `DefaultScreenController`.
|
|
|
|
|
|
+your ScreenController in the controller attribute of the <screen> tag. For this example, we use the `DefaultScreenController`.
|
|
|
|
|
|
|
|
|
|
=== Make Panels
|
|
=== Make Panels
|
|
@@ -314,7 +314,7 @@ Note that the width and height do not scale the bitmap font, but indirectly make
|
|
|
|
|
|
==== Button Control
|
|
==== Button Control
|
|
|
|
|
|
-Our +++<abbr title="Graphical User Interface">GUI</abbr>+++ plan asks for two buttons on the start screen. You add the Start and Quit buttons to the bottom panel of the `start` screen using the `<control>` element:
|
|
|
|
|
|
+Our +++<abbr title="Graphical User Interface">GUI</abbr>+++ plan asks for two buttons on the start screen. You add the Start and Quit buttons to the bottom panel of the `start` screen using the `<control>` element:
|
|
|
|
|
|
[source,xml]
|
|
[source,xml]
|
|
----
|
|
----
|
|
@@ -405,8 +405,12 @@ Your screen.xml should look like this:
|
|
|
|
|
|
==== Other Controls
|
|
==== Other Controls
|
|
|
|
|
|
-Nifty additionally offers many customizable controls such as check boxes, text fields, menus, chats, tabs, … See also link:https://versaweb.dl.sourceforge.net/project/nifty-gui/nifty-gui/1.3.2/nifty-gui-the-manual-1.3.2.pdf[Nifty GUI - the Manual: Elements].
|
|
|
|
|
|
+Nifty additionally offers many customizable controls such as check boxes, text fields, menus, chats, tabs, …
|
|
|
|
|
|
|
|
+See also:
|
|
|
|
+
|
|
|
|
+* link:https://versaweb.dl.sourceforge.net/project/nifty-gui/nifty-gui/1.3.2/nifty-gui-the-manual-1.3.2.pdf[Nifty GUI - the Manual: Elements]
|
|
|
|
+* link:https://github.com/nifty-gui/nifty-gui/wiki/Controls[Controls]
|
|
|
|
|
|
== Intermediate Result
|
|
== Intermediate Result
|
|
|
|
|