Hi.
When I start the application, Nifty GUI panels seems not to cover all JME canvas:
Then, after the first click on the canvas, nifty is readjusted.
Why can this be happening and how can I avoid it?
My interface:
[xml]
<?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”>
<!-- +++++++++++++++++++++++++++++++++++++++ -->
<!-- start screen -->
<!-- +++++++++++++++++++++++++++++++++++++++ -->
<screen id=“start” controller=“com.gemita.toscana.pinocchio.editor.jme.Hud”>
<layer id=“layer” childLayout=“center”>
<panel id=“panel” backgroundColor="#0fff" height=“10%” width=“100%” align=“center” valign=“bottom” childLayout=“horizontal” visibleToMouse=“true”>
<interact onClick=“defaultAction()”/>
<panel id=“panel_rotate_cw” height=“50%” width=“50%” valign=“center” childLayout=“center”>
<image filename=“Interface/img/rotate-cw.png” visibleToMouse=“true”>
<interact onClick=“startCamRotation()” onRelease=“stopCamRotation()” />
</image>
</panel>
<panel id="panel_rotate_ccw" height="50%" width="50%" valign="center" childLayout="center">
<image filename="Interface/img/rotate-ccw.png">
<interact onClick="startCamRotation()"/>
</image>
</panel>
<panel id="panel_bottom_left" height="50%" width="50%" valign="center" childLayout="center">
<text id="text" font="Interface/Fonts/Cantarell.fnt" color="#0fff" text="Hello " align="center" valign="center" />
</panel>
<!-- <text id="text" font="Interface/Fonts/Cantarell.fnt" color="#0fff" text="Hello " align="center" valign="center" /> -->
<!-- <text id="text" font="Interface/Fonts/Cantarell.fnt" color="#0fff" text="World!" align="center" valign="center" /> -->
<!-- <control name="button" font="Interface/Fonts/Cantarell.fnt" label="Quit" id="QuitButton" align="center" valign="center"/> -->
</panel>
</layer>
</screen>
</nifty>
[/xml]
PS- Nifty Gui buttons don’t support icon images, right? So I need to use an image as it was a button, right?