2
« 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" );