A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
jmonkeyengine/sdk/jme3-gui/src/com/jme3/gde/gui/examples/11-scrollpanel.xml

29 lines
1.3 KiB

<?xml version="1.0" encoding="UTF-8"?>
<nifty xmlns="http://nifty-gui.sourceforge.net/nifty-1.3.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://nifty-gui.sourceforge.net/nifty-1.3.xsd http://nifty-gui.sourceforge.net/nifty-1.3.xsd">
<useStyles filename="nifty-default-styles.xml" />
<useControls filename="nifty-default-controls.xml" />
<screen id="start">
<layer childLayout="center">
<panel childLayout="horizontal" align="center" valign="center" width="50%" height="50%" backgroundColor="#55a5" padding="10">
<control id="scrollbarPanelId" name="scrollPanel" horizontal="true" height="100%" width="100%">
<!-- first child is the content, the area to scroll around -->
<panel id="myScrollStuff" width="1000px" height="1000px" childLayout="vertical">
<effect>
<onActive name="gradient" direction="vertical">
<value offset="0%" color="#ffff" />
<value offset="100%" color="#f00f" />
</onActive>
<onActive name="gradient" direction="horizontal">
<value offset="0%" color="#ffff" />
<value offset="100%" color="#0f0f" />
</onActive>
</effect>
</panel>
</control>
</panel>
</layer>
</screen>
</nifty>