Hey dude, try this;
local flw=fe.layout.width;
local flh=fe.layout.height;
local gamesurface=fe.add_surface(flw,flh);
gamesurface.alpha=0;
local gamesnap=gamesurface.add_artwork("snap",0,0,flw,flh);
gamesnap.video_flags=Vid.ImagesOnly;
local listsurface=fe.add_surface(flw,flh);
listsurface.add_listbox(0,0,flw,flh);
listsurface.alpha=0;
const LISTTIME=50;
local listtimer=0;
local enableList = 0;
fe.add_transition_callback( "displayTransition" );
function displayTransition (ttype, var, ttime ){
switch ( ttype )
{
case Transition.ToNewSelection:
{
if (fe.get_input_state("Up")==true)
{
enableList = 1;
}
else if (fe.get_input_state("Down")==true)
{
enableList = 1;
}
}
}
}
function displaylist (ticks){
if (enableList == 1){
if (fe.get_input_state("Up")==true)
{
listtimer=LISTTIME;
listsurface.alpha=255;
gamesurface.alpha=0;
}
else if (fe.get_input_state("Down")==true)
{
listtimer=LISTTIME;
listsurface.alpha=255;
gamesurface.alpha=0;
}
else
{
listtimer = (listtimer -1);
if (listsurface.alpha>(255/LISTTIME))
{
listsurface.alpha-=255/LISTTIME;
}
if (gamesurface.alpha<255-(255/LISTTIME))
{
gamesurface.alpha+=255/LISTTIME;
}
if (listtimer <= 0){
enableList = 0;
}
}
}
}
fe.add_ticks_callback ("displaylist");
That is an excellent idea too mate, I'm going to have to incorporate a version of it into one of my layouts.