
messagebox.messagebox.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"> <useStyles filename="nifty-default-styles.xml" /> <useControls filename="nifty-default-controls.xml" /> <screen id="start" controller="de.lessvoid.nifty.examples.messagebox.MessageBoxStartScreen"> <layer id="layer" childLayout="vertical"> <panel width="100%" height="50%" childLayout="center"> <control id="messagebox" name="nifty-messagebox" messageBoxType="ERROR" message="Hello! This is a message box! Fear it!" buttonCaptions="Yes,No,Maybe,Go away" /> </panel> <panel width="100%" height="50" childLayout="horizontal"> <panel childLayout="center"> <control id="setInfo" name="button" label="As Information" align="center" valign="center"> <interact onClick="changeMessageBoxType(INFO)" /> </control> </panel> <panel childLayout="center"> <control id="setWarn" name="button" label="As Warning" align="center" valign="center"> <interact onClick="changeMessageBoxType(WARNING)" /> </control> </panel> <panel childLayout="center"> <control id="setError" name="button" label="As Error" align="center" valign="center"> <interact onClick="changeMessageBoxType(ERROR)" /> </control> </panel> </panel> </layer> </screen> </nifty>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy