Author Topic: Layout Help!  (Read 2951 times)

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Layout Help!
« 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
« Last Edit: April 18, 2023, 02:17:38 PM by clockman »

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #1 on: April 19, 2023, 08:12:23 AM »
looking for somthing like this ?  very basic..  https://youtu.be/kQJQ7AREfiA
help a friend....

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #2 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.

« Last Edit: April 20, 2023, 02:00:24 PM by clockman »

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #3 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
« Last Edit: April 21, 2023, 06:25:31 AM by jedione »
help a friend....

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #4 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.
« Last Edit: April 21, 2023, 08:19:43 AM by clockman »

joelsaacks

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Layout Help!
« Reply #5 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
« Last Edit: April 22, 2023, 07:46:53 AM by joelsaacks »

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #6 on: April 22, 2023, 06:29:51 PM »
Thanks i got it working!

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #7 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?
« Last Edit: April 30, 2023, 11:37:41 PM by clockman »

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #8 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");

}
help a friend....

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #9 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....
help a friend....

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #10 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.
« Last Edit: May 21, 2023, 06:24:11 PM by clockman »

OldGamer

  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: Layout Help!
« Reply #11 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 ?

clockman

  • Sr. Member
  • ****
  • Posts: 105
    • View Profile
Re: Layout Help!
« Reply #12 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?


jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #13 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
help a friend....

jedione

  • Hero Member
  • *****
  • Posts: 1135
  • punktoe
    • View Profile
Re: Layout Help!
« Reply #14 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...
help a friend....