Author Topic: orbit style marquee scrolling but.....  (Read 17155 times)

cherwilco

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
orbit style marquee scrolling but.....
« on: October 18, 2014, 03:56:22 PM »
I'm having trouble making a custom ps2 layout. I have my graphics and video snaps all sorted for where I would like them to appear on screen but I cant find any layout.nut files that I can modify (I suck at creating my own) that handle the marquee graphic the way I want. I like the orbit one where the marquee graphics scroll left and right in an arc (think smiley face) where the art resizes based on how close to center it is.... thats pretty damn awesome but I would like to reconfigure that marquee scroll to appear on the left hand side top to bottom. kind of like this:

game one

game two

game three

game four

game five


like this but with marquee art and smooth scroll like the orbit one does. I cant for the life of me figure out the transitions or how to modify. I attached a copy of the orbit layout that I am referring too

cherwilco

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: orbit style marquee scrolling but.....
« Reply #1 on: October 19, 2014, 10:33:34 AM »
so far this is what I am working on, edited from a hyperspin style theme. currently it does not work right as the marquee art gets out of order above the selected game and it gets pretty confusing when selecting a game. any idea why? (this is a 800x600 layout)

// Create 9 artworks.
local title_p3 = fe.add_artwork( "marquee", 20, 80, 190, 75 );
local title_n1 = fe.add_artwork( "marquee", 20, 160, 190, 75 );
local title_n2 = fe.add_artwork( "marquee", 20, 240, 190, 75 );
local title_n3 = fe.add_artwork( "marquee", 20, 320, 190, 75 );
local title_n0 = fe.add_artwork( "marquee", 20, 400, 190, 75 );
local title_n5 = fe.add_artwork( "marquee", 20, 480, 190, 75 );
local title_n6 = fe.add_artwork( "marquee", 20, 560, 190, 75 );
local title_n7 = fe.add_artwork( "marquee", 20, 640, 190, 75 );
local title_n8 = fe.add_artwork( "marquee", 20, 720, 190, 75 );

// Set index_offset for these 5 artworks.
title_p3.index_offset = 1;
title_n1.index_offset = 2;
title_n2.index_offset = 3;
title_n3.index_offset = 4;
title_n0.index_offset = 0;
title_n5.index_offset = 1;
title_n6.index_offset = 2;
title_n7.index_offset = 3;
title_n8.index_offset = 4;

// Add transition callback function.
fe.add_transition_callback( "orbit_transition" );
// Fill in orbit_transition function, as below:
local SPIN_MS=160; // Duration of transition effect (in msec)
function orbit_transition( ttype, var, ttime ) {
switch ( ttype )
{
case Transition.ToNewSelection:
if ( ttime < SPIN_MS ) {
local direction = -1;
if (var < 0) direction = 1;
local increment = (ttime * direction * 80) / SPIN_MS;
title_p3.y = 80 + increment;
title_n1.y = 160 + increment;
title_n2.y = 240 + increment;
title_n3.y = 320 + increment;
title_n0.y = 400 + increment;
title_n5.y = 480 + increment;
title_n6.y = 560 + increment;
title_n7.y = 640 + increment;
title_n8.y = 720 + increment;

return true;
}

else {
title_p3.y = 80;
title_n1.y = 160;
title_n2.y = 240;
title_n3.y = 320;
title_n0.y = 400;
title_n5.y = 480;
title_n6.y = 560;
title_n7.y = 640;
title_n8.y = 720;
return false;
}
}
return false;
}

cherwilco

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: orbit style marquee scrolling but.....
« Reply #2 on: October 19, 2014, 11:30:57 AM »
also here is a video of the marquee's not ordering correctly on the left.
https://www.youtube.com/watch?v=wL4AcHlChJg&feature=youtu.be

also attached is a zip of my layout in its current form.

help please this is driving me nuts ???

checkist

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: orbit style marquee scrolling but.....
« Reply #3 on: October 19, 2014, 01:32:34 PM »
This will not fix all the problems, but try :

// Set index_offset for these 5 artworks.
title_p3.index_offset = -4;
title_n1.index_offset = -3;
title_n2.index_offset = -2;
title_n3.index_offset = -1;
title_n0.index_offset = 0;
title_n5.index_offset = 1;
title_n6.index_offset = 2;
title_n7.index_offset = 3;
title_n8.index_offset = 4;



At least this will correct the 'order' (I hope)

cherwilco

  • Jr. Member
  • **
  • Posts: 23
    • View Profile
Re: orbit style marquee scrolling but.....
« Reply #4 on: October 19, 2014, 01:56:35 PM »
and that fixed it! thank you so much! now I can focus on the filters to resize the marquee art based on position! thanks again

attached is the updated layout.nut that includes the fix if anyone wants it
« Last Edit: October 19, 2014, 02:03:15 PM by cherwilco »

omegaman

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 880
    • View Profile
Re: orbit style marquee scrolling but.....
« Reply #5 on: October 24, 2014, 05:29:14 AM »
Checkist has it squared away. You can pretty much make any adjustments with the offsets.