4
« on: May 07, 2018, 12:56:34 AM »
EDIT:
I fixed it. Your change made it so it loaded fine but when changing filter it was off. When going to a previous filter it showed slot_a as what would go before if there was a variable. slot_b showed slot_a, slot_c showed slot_b etc. When going forward a filter slot_a showed slot_b and so on.
The solution for anyone else looking at this. Change the update_my_list function to:
function update_my_list( ttype, var, ttime )
{
if ( ttype == Transition.StartLayout || ttype == Transition.ToNewSelection )
{
slot_a.msg = trimmed_name( var - 2 );
slot_b.msg = trimmed_name( var - 1 );
slot_c.msg = trimmed_name( var );
slot_d.msg = trimmed_name( var + 1 );
slot_e.msg = trimmed_name( var + 2 );
}
if ( ttype == Transition.ToNewList )
{
slot_a.msg = trimmed_name( -2 );
slot_b.msg = trimmed_name( -1 );
slot_c.msg = trimmed_name( 0 );
slot_d.msg = trimmed_name( 1 );
slot_e.msg = trimmed_name( 2 );
}
return false;
}