Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: henrikes on December 31, 2019, 04:01:10 AM

Title: next_filter
Post 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?

Title: Re: next_filter
Post by: jedione on December 31, 2019, 08:06:36 AM
what fading?,  sounds you need to show the code or enplane better,

i take it you using the animation or fade module?

Title: Re: next_filter
Post by: henrikes on January 01, 2020, 01:49:51 AM
Hi,

Sorry for the lack of information, I'm using the fade module.

Code: [Select]
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" )
Title: Re: next_filter
Post by: henrikes on January 07, 2020, 06:51:21 AM
Any idea?
Title: Re: next_filter
Post by: keilmillerjr on January 07, 2020, 10:52:49 AM
Fade module flip function is triggered on EndNavigation and ToNewList Transitions.