Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - tankman37

Pages: [1]
1
Scripting / Re: PopUp.nut displaying image behind background
« on: December 22, 2023, 01:29:42 AM »
This may be a bit late for you, but i had the same question the other day, and same issue with PopUp.nut. Found this code on the Discord server. image will appear when you press and hold a key, in this case up or down. i use it for next page arrows. Hopefully someone one day will see this post and have a use. Just a note, the pop up.nut works on AM, but in AM+ the image appears behind everything ( some Z order thing i dont understand)


local image_up = fe.add_image ("arrow_up.png", 490,1125,100,100);
local image_down = fe.add_image ("arrow_down.png", 490,1605,100,100);
image_up.visible = false;
image_down.visible = false;
fe.add_ticks_callback( "tick_up" );
fe.add_ticks_callback( "tick_down" );
function tick_up( ttime )
{
    if (fe.get_input_state("Up")==true)
            {
                image_up.visible = true;
            
            }
   else if (fe.get_input_state("Up")== false)
            {
                image_up.visible = false;
            
            }
            return true;
   return false;
}

function tick_down ( ttime )
{
    if (fe.get_input_state("Down")==true)
            {
                image_down.visible = true;
            }
   else if (fe.get_input_state("Up")== false)
            {
                image_down.visible = false;
            }
            return true;
   return false;
}

2
Scripting / Re: Boxart delay
« on: October 10, 2023, 09:38:24 PM »
fe.load_module( "animate" );


local box =fe.add_artwork( "boxes", 0, 0, 460, 545 )

local ani1 = { when=Transition.StartLayout, property="alpha", start=0, end=0,time=1 }
animation.add( PropertyAnimation( box, ani1) );

local ani2 = { when=Transition.StartLayout, property="alpha", start=0, end=255,delay =2000,time=50 }
animation.add( PropertyAnimation( box, ani2 ) );

local ani3 = { when=Transition.ToNewSelection, property="alpha", start=0, end=255,delay =2000,time=50 }
animation.add( PropertyAnimation( box, ani3 ) );

   local ani4 = { when=Transition.FromOldSelection, property="alpha", start=0, end=0,time=1 }
animation.add( PropertyAnimation( box, ani4 ) );
   

This is what i use, found part of the code and some suggestions on the forums. A delay on the alpha messes things up big time, so the Alpha=0 for 1ms helps. You can change the delay and time to suit. i am sure someone could come up with a more elegant solution but this works for me.

3
Themes / Vertical themes
« on: June 11, 2023, 01:09:09 AM »
Started as a vertical attempt of the Flat Blue Theme. i use FS6 for game views and PF1 for home page and colections. Side list that sort of acts like a wheel, some animated text. Made to suit my 32inch HDTV in vertical ( pinball etc )

Pages: [1]