1
General / Re: Windows .bat files wont load in Attract Mode
« on: May 21, 2023, 01:15:00 PM »
mabey ..check uppercase lowercase...matching...
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.
//
// Videotheme Timer Code By qqplayer
//
::OBJECTS1 <- {
artwork_videotheme = fe.add_artwork("video", flx*0.3125, 150, 270, 190),
}
OBJECTS1.artwork_videotheme.visible=false;
::videoSound <- Vid.NoAudio;
OBJECTS1.artwork_videotheme.video_flags = videoSound;
local settings = {
delay_timer = 0,
play_delay = 2000,
stop_play = 235000,
}
function on_transition_videotheme( ttype, var, ttime ) {
switch ( ttype ) {
case Transition.StartLayout:
case Transition.ToNewSelection:
case Transition.ToNewList:
case Transition.EndNavigation:
OBJECTS1.artwork_videotheme.video_flags = Vid.NoAutoStart;
settings.delay_timer = fe.layout.time;
OBJECTS1.artwork_videotheme.visible=false;
break;
}
return false;
}
fe.add_transition_callback( "on_transition_videotheme" );
function on_tick_videotheme(tick_time) {
if ( !OBJECTS1.artwork_videotheme.video_playing && tick_time - settings.delay_timer >= settings.play_delay ) {
OBJECTS1.artwork_videotheme.video_playing = true;
::videoSound <- Vid.Default;
OBJECTS1.artwork_videotheme.video_flags = videoSound;
OBJECTS1.artwork_videotheme.visible=true;
OBJECTS1.artwork_videotheme.alpha = 0
local alpha_artwork_videotheme_0 = {
property = "alpha", start = 0 end = 255, time = 500 easing = Easing.Out,
}
animation.add( PropertyAnimation( OBJECTS1.artwork_videotheme, alpha_artwork_videotheme_0 ) );
}
else if ( tick_time - settings.delay_timer >= settings.stop_play ) {
OBJECTS1.artwork_videotheme.visible=false;
}
}
fe.add_ticks_callback(this, "on_tick_videotheme");
}