
allcontrols.allcontrols.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="nifty-default-styles.xml" /> --> <useStyles filename="nifty-default-styles.xml" /> <useControls filename="nifty-default-controls.xml" /> <!-- +++++++++++++++++++++++++++++++++++++++ --> <!-- start screen --> <!-- +++++++++++++++++++++++++++++++++++++++ --> <screen id="start" controller="de.lessvoid.nifty.examples.allcontrols.AllControlsDemoStartScreen"> <layer id="layer" childLayout="center"> <effect> <onActive name="gradient"> <value offset="0%" color="#2220" /> <value offset="100%" color="#555f" /> </onActive> </effect> <panel id="dialog" style="nifty-panel" childLayout="center" width="50%" height="80%" align="center" valign="center" visibleToMouse="true"> <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" text="Textfield: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control id="name" name="textfield" text="Text Input" /> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="Checkbox: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control id="checkbox" name="checkbox" checked="false" /> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="DropDown: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control id="dropDown" name="dropDownControl" /> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="Scrollbar H.: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control name="horizontalScrollbar" worldMaxValue="10.0" /> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="Scrollbar V.: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control name="verticalScrollbar" height="100px" worldMaxValue="5.0" /> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="Listbox: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control id="listBox" name="listBox" horizontal="false" width="*" height="100px"> <panel id="listBoxData" width="100%" childLayout="vertical" visibleToMouse="true" /> </control> </panel> <panel childLayout="horizontal" height="10px" /> <panel childLayout="horizontal"> <text text="Scrollpanel: " width="100px" align="left" textVAlign="center" textHAlign="left" /> <control name="scrollPanel" width="*" height="120px"> <panel width="544px" height="158px" childLayout="center"> <image filename="intro-logo.png" /> </panel> </control> </panel> <panel childLayout="horizontal" height="*" /> <panel childLayout="center" width="100%" height="50px"> <control id="backButton" name="button" label="Back" align="center" valign="center" /> </panel> </panel> </panel> </layer> </screen> </nifty>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy