
console.console-samescreen.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nifty-examples Show documentation
Show all versions of nifty-examples Show documentation
Lots of Nifty example code! You can find the source for nearly all demos/tutorials in here.
<?xml version="1.0" encoding="UTF-8"?> <nifty xmlns="http://nifty-gui.lessvoid.com/nifty-gui"> <!-- +++++++++++++++++++++++++++++++++++++++ --> <!-- load default styles and controls --> <!-- +++++++++++++++++++++++++++++++++++++++ --> <useStyles filename="console/custom-console-style.xml" /> <useStyles filename="nifty-default-styles.xml" /> <useControls filename="nifty-default-controls.xml" /> <!-- +++++++++++++++++++++++++++++++++++++++ --> <!-- start screen --> <!-- +++++++++++++++++++++++++++++++++++++++ --> <screen id="start" controller="de.lessvoid.nifty.examples.console.ConsoleSameScreenStartScreen" defaultFocusElement="name"> <layer id="layer" childLayout="center" backgroundImage="background.png"> </layer> <layer id="layer2" childLayout="center"> <panel id="dialog" style="nifty-panel" padding="18px,28px,28px,16px" childLayout="center" width="50%" height="38%" align="center" valign="center"> <effect> <onStartScreen name="move" timeType="exp" factor="3.5" direction="top" mode="in" length="500" inherit="true"/> <onEndScreen name="move" timeType="exp" factor="3.5" direction="bottom" mode="out" length="500" inherit="true"/> </effect> <panel childLayout="vertical" align="center" valign="center"> <panel id="namePanel" childLayout="horizontal"> <text id="labelName" style="nifty-label" text="Your Name: " width="150px" align="left" textVAlign="center" textHAlign="left" /> <control id="name" name="textfield" text="press F1 to toggle console" /> </panel> <panel childLayout="horizontal" height="8px" /> <panel childLayout="vertical" width="100%"> <control id="backButton" name="button" label="Back to Menu" align="right"> <interact onClick="back()" /> </control> </panel> </panel> </panel> </layer> <layer id="consoleLayer" childLayout="vertical" visible="false"> <effect> <onStartScreen name="move" inherit="true" direction="top" mode="in" length="500"/> <onEndScreen name="move" inherit="true" direction="top" mode="out" length="500"/> </effect> <panel id="consoleParent" childLayout="center" width="95%" height="20%" align="center" valign="center"> <control id="console" name="nifty-console" lines="20" align="center" valign="center" /> </panel> </layer> </screen> </nifty>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy