Author Topic: Show Letter when jumping to next...  (Read 1620 times)

justintime

  • Jr. Member
  • **
  • Posts: 18
    • View Profile
Show Letter when jumping to next...
« on: October 10, 2024, 12:11:07 PM »
Just like with hyperspin, I would like to have the Letter shown on screen when I jump to the next letter in the list...  A,B,C,D....   If I could display an image for the letter, better yet.

I dont see a transition parameter for jump next though.  So maybe this is not possible.  Any ideas?


JJTheKing

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
Re: Show Letter when jumping to next...
« Reply #1 on: November 02, 2024, 12:33:38 PM »
# 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
}
}