Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: clockman on April 18, 2023, 02:06:21 PM

Title: Layout Help!
Post by: clockman on April 18, 2023, 02:06:21 PM
So i have tried and can't figure how to edit or create a layout.nut. I am trying to make a simple theme with just the games list and video snaps and marquees. I was wondering if Someone could help me create a layout.nut. I would also like it to scale from from 720p to 1080p. This is what i would like it to look like.  With snaps, marquees and the games list with black text with blue for the game selected. I would like the blue selected game text to be larger. Here is a image of what i want it to look like, and if anyone wants to help here is the background image download. https://mega.nz/file/IjZizL6R#8nr64qz9gVNJ52oB56c9gdWkYXhWWlmk25vBzdG7Xik
Title: Re: Layout Help!
Post by: jedione on April 19, 2023, 08:12:23 AM
looking for somthing like this ?  very basic..  https://youtu.be/kQJQ7AREfiA (https://youtu.be/kQJQ7AREfiA)
Title: Re: Layout Help!
Post by: clockman on April 20, 2023, 10:17:42 AM
Yes but instead of the blue bar around the selected game, I want the selected game font to be a different color and larger.

Title: Re: Layout Help!
Post by: jedione on April 20, 2023, 03:40:16 PM
here ya go,  just put were you layouts go, use am+ not reular am k.  https://www.dropbox.com/s/wq6lz1srxjwwuct/theme.zip?dl=0 (https://www.dropbox.com/s/wq6lz1srxjwwuct/theme.zip?dl=0)
Title: Re: Layout Help!
Post by: clockman on April 21, 2023, 07:43:07 AM
So where do I download attractmode+? I don't see it. Also I am using it on a Windows 10 PC.
Title: Re: Layout Help!
Post by: joelsaacks on April 22, 2023, 07:43:34 AM
>So where do I download attractmode+? I don't see it. Also I am using it on a Windows 10 PC.


https://github.com/oomek/attractplus

Assuming you're using windows..

You put the files in the same folder as attract.exe.
You run attractplus.exe instead of attract.exe
Title: Re: Layout Help!
Post by: clockman on April 22, 2023, 06:29:51 PM
Thanks i got it working!
Title: Re: Layout Help!
Post by: clockman on April 30, 2023, 11:21:15 PM
Thanks a lot for your help but I had a few more questions for you. I want a image to show for 3 seconds and then a video snap to show over the image. I would also like the boxart, marquee to disappear after 3 seconds and the flyer disappear after 3 seconds. How would I add that to a layout.nut?
Title: Re: Layout Help!
Post by: jedione on May 01, 2023, 10:37:45 AM
this is code for snap to video delay
Code: [Select]
//
// 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");

}
Title: Re: Layout Help!
Post by: jedione on May 01, 2023, 10:45:27 AM
once you set that to 3 sec...  in  the transition just add a another "if" statment that has somthing like,
OBJECTS1.artwork_videotheme.video_playing = true
snap.visible = false
marquee.visible = false   ...ext   whatever you have your stuff set to in the theme....
Title: Re: Layout Help!
Post by: clockman on May 21, 2023, 05:49:49 PM
I have my theme up and running. But how do i add a clicking sound when i scroll through the games? I have a click.mp3 file. Ok i figured it out.
Title: Re: Layout Help!
Post by: OldGamer on May 24, 2023, 05:06:07 AM
I have my theme up and running. But how do i add a clicking sound when i scroll through the games? I have a click.mp3 file. Ok i figured it out.
did you really figured it out ? or no ?
Title: Re: Layout Help!
Post by: clockman on July 22, 2023, 05:17:35 AM
So i have been messing around with the layout.nut changing things. I have it how I want it now except for the games list. I am uploading 2 images, the first image is how it is and the second image is ho I want it. I would like the end of the games list to merge into the beginning of the games list like image 2. Could some one help with the games list layout.nut?

Title: Re: Layout Help!
Post by: jedione on July 25, 2023, 06:22:24 AM
just o somthng like this....

Code: [Select]
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
Title: Re: Layout Help!
Post by: jedione on August 05, 2023, 10:00:05 PM
Why ask questions if you don't intend to reply...... Some of you guys Realy amaz me.... Bro...
Title: Re: Layout Help!
Post by: clockman on August 06, 2023, 03:45:14 AM
Why ask questions if you don't intend to reply...... Some of you guys Realy amaz me.... Bro...
Sorry for no reply, I have been at the hospital with my wife as she had a emergency surgery. I have been spending all of my time with her, but the worst of it is over now. Thank you for your help and I will let you know if it worked when I get home today or tomorrow.
Title: Re: Layout Help!
Post by: jedione on August 17, 2023, 07:11:38 AM
now i feel like a dick,  lol sorry no problem...homi
Title: Re: Layout Help!
Post by: clockman on August 18, 2023, 03:50:07 PM
now i feel like a dick,  lol sorry no problem...homi
Don't feel that way it's ok!
Title: Re: Layout Help!
Post by: jedione on August 19, 2023, 09:16:15 PM
Ahh.. Now I feel great again...  8)
Title: Re: Layout Help!
Post by: clockman on August 21, 2023, 02:24:04 PM
Ahh.. Now I feel great again...  8)
Thanks for your help!