Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: henrikes on December 31, 2019, 04:01:10 AM
-
Hi guys,
I need some help with the next_filter..
In my layout i'm using on_signal to capture keys and i then use fe.signal( "next_filter" ) and fe.signal( "prev_filter" ) to move from filter to filter.
The problem i'm facing is that when i use fe.signal( "next_filter" ) and fe.signal( "prev_filter") the fading of my layout images doesnt occur,but if i use the key configured in AM for changing filter the fading occurs, can you guys help me understand whats wrong?
-
what fading?, sounds you need to show the code or enplane better,
i take it you using the animation or fade module?
-
Hi,
Sorry for the lack of information, I'm using the fade module.
fe.load_module( "fade" );
local bgart = FadeArt( "fanart", 0, 0, 1920, 1080);
....
function on_signal( sig )
{
switch ( sig )
{
case "down":
fe.signal( "next_filter" )
return true
case "up":
fe.signal( "prev_filter" )
return true
default:
return false
}
}
fe.add_signal_handler( "on_signal" )
-
Any idea?
-
Fade module flip function is triggered on EndNavigation and ToNewList Transitions.