|
@@ -89,8 +89,8 @@ A custom control is created, which represents the progress bar.
|
|
<controlDefinition name = "loadingbar" controller = "jme3test.TestLoadingScreen">
|
|
<controlDefinition name = "loadingbar" controller = "jme3test.TestLoadingScreen">
|
|
<image filename="Interface/border.png" childLayout="absolute"
|
|
<image filename="Interface/border.png" childLayout="absolute"
|
|
imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15">
|
|
imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15">
|
|
- <image id="progressbar" x="0" y="0" filename="Interface/inner.png" width="32px" height="100%"
|
|
|
|
- imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15"/>
|
|
|
|
|
|
+ <image id="progressbar" x="0" y="0" filename="Interface/inner.png" width="32px"
|
|
|
|
+ height="100%" imageMode="resize:15,2,15,15,15,2,15,2,15,2,15,15"/>
|
|
</image>
|
|
</image>
|
|
</controlDefinition>
|
|
</controlDefinition>
|
|
|
|
|
|
@@ -103,10 +103,10 @@ This screen simply displays a button in the middle of the screen, which could be
|
|
|
|
|
|
<screen id="start" controller = "jme3test.TestLoadingScreen">
|
|
<screen id="start" controller = "jme3test.TestLoadingScreen">
|
|
<layer id="layer" childLayout="center">
|
|
<layer id="layer" childLayout="center">
|
|
- <panel id = "panel2" height="30%" width="50%" align="center" valign="center" childLayout="vertical"
|
|
|
|
- visibleToMouse="true">
|
|
|
|
- <control id="startGame" name="button" backgroundColor="#0000" label="Load Game" align="center">
|
|
|
|
- <interact onClick="showLoadingMenu()" />
|
|
|
|
|
|
+ <panel id = "panel2" height="30%" width="50%" align="center" valign="center"
|
|
|
|
+ childLayout="vertical" visibleToMouse="true">
|
|
|
|
+ <control id="startGame" name="button" backgroundColor="#0000" label="Load Game"
|
|
|
|
+ align="center"> <interact onClick="showLoadingMenu()" />
|
|
</control>
|
|
</control>
|
|
</panel>
|
|
</panel>
|
|
</layer>
|
|
</layer>
|
|
@@ -121,8 +121,10 @@ This screen displays our custom progress bar control with a text control.
|
|
|
|
|
|
<screen id="loadlevel" controller = "jme3test.TestLoadingScreen">
|
|
<screen id="loadlevel" controller = "jme3test.TestLoadingScreen">
|
|
<layer id="loadinglayer" childLayout="center" backgroundColor="#000000">
|
|
<layer id="loadinglayer" childLayout="center" backgroundColor="#000000">
|
|
- <panel id = "loadingpanel" childLayout="vertical" align="center" valign="center" height="32px" width="400px">
|
|
|
|
- <control name="loadingbar" align="center" valign="center" width="400px" height="32px" />
|
|
|
|
|
|
+ <panel id = "loadingpanel" childLayout="vertical" align="center" valign="center"
|
|
|
|
+ height="32px" width="400px">
|
|
|
|
+ <control name="loadingbar" align="center" valign="center" width="400px"
|
|
|
|
+ height="32px" />
|
|
<control id="loadingtext" name="label" align="center"
|
|
<control id="loadingtext" name="label" align="center"
|
|
text=" "/>
|
|
text=" "/>
|
|
</panel>
|
|
</panel>
|