v2.0
:
local info_a = fe.add_artwork( "image", 24, 24);
info_a.y = 24;
fe.add_signal_handler( "on_signal" );
function on_signal( signal )
{
local tope = ( fe.layout.height - info_a.texture_height );
switch ( signal )
{
case "up":
if ( info_a.y == 24 )
{
info_a.y = info_a.y;
}
else
{
info_a.y = ( info_a.y + 50 );
}
return true;
case "down":
if ( info_a.y > tope )
{
info_a.y = ( info_a.y - 50 );
}
else
{
info_a.y = info_a.y;
}
return true;
}
return false;
}