hi guys, i dont know why the custom effect isnt found.
xml definition:
[xml]
<control visible=“false” id=“test-console” name=“test-console”>
<effect>
<onCustom customKey=“showConsole” name=“move” mode=“in” direction=“top” length=“4000” />
<onCustom customKey=“hideConsole” name=“move” mode=“out” direction=“top” length=“4000” />
</effect>
</control>
[/xml]
starting the effect:
testConsoleControl.startEffect(EffectEventId.onCustom, null, “showConsole”);
the output:
08.08.2011 01:44:52 de.lessvoid.nifty.effects.Effect canStartEffect
INFO: starting effect [(ColorBar[focus])] canceled because customKey [showConsole] does not match key set at the effect
im using nifty-1.3
[EDIT]
Its strange, it doesnt matter wich effect im using, custom or not, they all dont work.
if im setting the effect onHide move="out" length="4000" direction="top", the Element just dissapear after 4000ms with no animation.
Im using the newst jme3- & nifty - libraries compiled from the trunk with netbeans.