I am trying to create a displays theme and am having difficulty with finding the currently selected display name. The best option so far appears to be fe.game_info(Info.Name), but I can only seem to get this value on the initial startup of the theme.
local selectionname = fe.game_info(Info.Name);
function my_transition_check( ttype, var, ttime ) {
switch ( ttype ) {
case Transition.StartLayout:
case Transition.ToNewSelection:
case Transition.ToNewList:
case Transition.EndNavigation:
selectionname = fe.game_info(Info.Name);
local textselectionname = fe.add_text(selectionname, flx*0.18, fly*0.905, flw*0.3, flh*0.035 );
break;
}
return false;
}
fe.add_transition_callback("my_transition_check" );
This works on Transition.StartLayout, but not for any other transitions. Just never updates when selecting from the wheel. If I enter a display and return back then it is updated with the new value.
I need someone else's eyes to point out my mistake. Any help is appreciated.