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
Themes / Re: Wheel help
« on: October 13, 2024, 03:31:31 AM »
You will need both the "wheel" and "inertia " modules. i use AM+, it's been a while since i have used plain AM so not sure if those modules come with it.
Best place for AM+ is disord

 https://discord.gg/v3DuVcaP

2
Themes / Re: Wheel help
« on: October 13, 2024, 03:27:43 AM »
fe.load_module("inertia");
fe.load_module("wheel");


local surface = fe.add_surface(1920, 1080);/// to suit your screen, you may have to adjust wheel slot positions, see below
surface.set_pos( 0,0)
surface.mipmap = true
local retro =
{
    function init()
    {
    slots <- 9
    speed <- 0900
    artwork_label <- "wheel"
    video_flags <- Vid.ImagesOnly
    x <- 200                 //gobal position of wheel
    y <- 900               //gobal position of wheel
    layout.y <- [ 140, 140, 140, 140, 120, 140, 140, 140, 140 ]
    layout.x <- [ -740, -410, -20, 360, 760, 1150, 1530, 1940, 1940 ]
    layout.width <- [ 300, 300, 300, 300, 350, 300, 300, 300, 300 ]                //////individual positions of wheel slots
    layout.height <- [ 100, 100, 100, 100, 150, 100, 100, 100, 100 ]
    layout.alpha <- [ 255, 255, 255, 255, 255, 255, 255, 255, 255 ]
    zorder <- 2
    anchor <- Wheel.Anchor.Bottom
    }
}   
local wheel = fe.add_wheel( retro,surface )

//////////animate wheel///////

   surface= Inertia( surface, 700,"alpha"); // the surface to fade 700=speed of fade

     function  surface( ttype, var, ttime )
     {
         if( ttype==Transition.StartLayout || ttype==Transition.ToNewSelection )
         {
             
                surface.alpha=255
          surface.to_alpha=0
          surface.delay_y=3000;      ///delay to fade=3s                  
         }

    }

fe.add_transition_callback( "surface" );

3
Scripting / Re: Override select control on a layout
« on: October 04, 2024, 11:40:26 PM »
Trying to understand fe.nv, could you post some code? also looking to save element position etc

4
Themes / Re: SlidyMenu
« on: October 04, 2024, 10:58:20 PM »
any update on this? looking forward to see how you have coded it.

5
Scripting / Re: Perspective transformation/correction?
« on: October 03, 2024, 07:15:42 PM »
https://github.com/Chadnaut/Attract-Mode-Modules
try here, there is a perspective module

6
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;
}

7
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.

8
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]