# Search Skip by letters LT + RT Buttons
{
local rtime = 0
local glob_time = 0
local glob_delay = 1250
local trigger_letter = false
local letter_x = 0.5
local letters = fe.add_image("", 1820, 10, 100, 50)
fe.add_transition_callback( "letter_transition" )
function letter_transition( ttype, var, ttime )
{
if( ttype == Transition.ToNewList)
rtime = glob_time
}
fe.add_ticks_callback( "letter_tick" )
function letter_tick( ttime )
{
glob_time = ttime
if( glob_time - rtime > glob_delay )
letters.visible = false // hide letter search if present
if( trigger_letter == true )
{
local firstl = fe.game_info(Info.Title)
letters.file_name = FeConfigDirectory + "layouts/Dark/meta/letters/regular/" + firstl.slice(0,1).tolower() + ".png" //change to your layout name
letters.visible = true
letters.zorder = 10
}
trigger_letter = false
}
fe.add_signal_handler( "letter_signal" )
function letter_signal( str )
{
switch( str )
{
case "next_letter":
case "prev_letter":
rtime = glob_time
trigger_letter = true
break
}
return false
}
}