1
Themes / Re: Layout Help!
« on: August 19, 2023, 09:16:15 PM »
Ahh.. Now I feel great again...

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.
local last_nav = 0;
local gtime = 0;
local art_flag = false;
local artwork = fe.add_artwork("boxart", 15, 34, 661, 1018)
fe.add_transition_callback( "my_transition" );
function my_transition( ttype, var, ttime )
{
if ( ttype == Transition.ToNewSelection )
{
last_nav = gtime;
art_flag = true;
}
}
fe.add_ticks_callback( this, "on_tick" );
function on_tick( ttime )
{
gtime = ttime;
if (art_flag && (ttime - last_nav > 3000))
{
artwork.file_name = fe.get_art("boxart");
art_flag = true;
}
}
local list = fe.add_text("[Title]",7 ,60 ,677 ,1066)
list.index_offset = -2
local list = fe.add_text("[Title]",7 ,80 ,677 ,1066)
list.index_offset = -1
local main = fe.add_text("[Title]",7 ,100 ,677 ,1066)
main.index_offset = 0
local list = fe.add_text("[Title]",7 ,120 ,677 ,1066)
list.index_offset = 1
local list = fe.add_text("[Title]",7 ,140 ,677 ,1066)
list.index_offset = 2
//
// 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");
}