well what i have here is some code on switching the signal for buttons,
up,down,left,right.
under left i have added a fade animation,
so when u start layout u can go, up,down,right and doesent show animation, great..
when i go left, it shows the animation, like it should , great
but... now after showing animation with, left, up,down& right also trigger the animation, whitch i dont want..
anyone know how to insert some code to make animation reset or stop their,
hope this makes sence...
fe.layout.width = 1280;
fe.layout.height = 1024;
fe.load_module( "animate" );
function on_signal( sig )
{
switch ( sig )
{
case "up":
fe.signal( "next_game" );
return true;
case "down":
fe.signal( "prev_game" );
return true;
case "left":
fe.signal( "next_game" );
local abc = fe.add_image( "firstletter/[Buttons]", 70, 930, 1100, 50);
local fade_conf = {
when = Transition.ToNewSelection,
property = "alpha",
start = 255,
end = 0,
time = 2000,
loop = false,
}
animation.add( PropertyAnimation( abc, fade_conf ) );
return true;
case "right":
fe.signal( "prev_game" );
return true;
}
return false;
}
fe.add_signal_handler(this, "on_signal");