46
Themes / Re: At-The-Arcade Multi-Cab [Released]
« on: February 03, 2021, 09:37:28 AM »Quote
now I need to concentrate on real world things
Terrible.
I'll take a look later tonight.
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.
now I need to concentrate on real world things
could you pass me the code so I have the bezels for all the games?Sure. Code below
local bezel = fe.add_artwork("bezel", 0,0, 640, 480))
bezel.trigger = Transition.EndNavigation
local snap_scaling_finished = false
//change x/y values as neeeded
local h_snap_x = 10
local h_snap_y = 20
local v_snap_x = 20
local v_snap_y = 10
function artwork_transition( ttype, var, ttime )
{
if ( ttype == Transition.EndNavigation || ttype == Transition.StartLayout || ttype==Transition.ToNewList || ttype==Transition.FromGame )
{
if ( !snap_scaling_finished )
{
// check if vertical
if (snap.subimg_width !=0 && snap.subimg_height !=0)
{
if (snap.subimg_width/snap.subimg_height < 1)
{
// vertical
snap.x= v_snap_x
snap.y= v_snap_y
snap_scaling_finished = true
return true // redraw
}
else
{
// horizontal
snap.x = h_snap_x
snap.y = h_snap_y
snap_scaling_finished = true
return true // redraw
}
}
else
{
// only happens if there's no snap video or for some reason can't get subimg values
snap_scaling_finished = true
return false
}
}
return false
}
if (ttype== Transition.FromOldSelection)
{
if (snap_scaling_finished)
{
// set back to defaults
snap.x = h_snap_x
snap.y = h_snap_y
snap_scaling_finished = false
return true // redraw
}
}
return false
}
fe.add_transition_callback("artwork_transition")
Right I think so too, but there would be no way to resize videos to automatically fit you have bezels?
wheel.x = pos.x(0,"center",wheel,instructions_bg,"center")
wheel.y = pos.y(20,"top",wheel, instructions_bg,"bottom")
wheel.height = pos.vertical_space_between(instructions_bg,null,10)