31
General / Re: Opening Display to first game in a romlist
« on: October 21, 2018, 03:42:58 PM »
Thanks keilmillerjr. Works perfectly:
I've added it to the bottom of my layout in layout.nut and it does what I want it to do.
Code: [Select]
// This plugin ensures that when a Display is opened, the first game in the romlist is in focus
fe.add_transition_callback( "first_game" );
function first_game( ttype, var, ttime )
{
switch ( ttype )
{
case Transition.ToNewList:
fe.list.index = 0
return false;
}}
I've added it to the bottom of my layout in layout.nut and it does what I want it to do.