Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: dmmarti on November 23, 2019, 10:36:49 AM

Title: Smooth theme for scrolling Overview game descriptions
Post by: dmmarti on November 23, 2019, 10:36:49 AM
UPDATE: Theme is released along with repo for Overview files

I've uploaded the theme to Github along with another repo with Overview files for a lot of systems.

Youtube demo of released theme:

https://youtu.be/ZeSM8Kxwtdk

Download from Github

Click on the green Clone/Download button
Download the ZIP file
Extract
Copy the theme folder to Attract Mode’s layouts folder
Assign the theme to the various displays

https://github.com/dmmarti/am-theme-smooth

—
Additional downloads

These theme uses Overview files to show game descriptions..

These files should be placed in a sub-folder within Attract Mode with the following folder structure.

Attract Mode/scraper/(system)/overview

A special scraper/system folder (@) includes overview files to show a synopsis of various systems.

Here's a Github repo with a large amount of Overview files for various systems.

https://github.com/dmmarti/overview

Click on the green Clone/Download button
Download the ZIP file
Extract
Copy the scraper folder's contents to the Attract Mode scraper folder.




==========
-original post-

Here's a new theme I'm working on (will be given a proper name later) showing the scrolling of the Overview game descriptions.

Special thanks to @jedione for the help!

Getting the Overview files scrolling vertically was one thing I've always struggled with....but now I think I've got it!

https://youtu.be/td4E3xPnhLs
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: rand0m on November 23, 2019, 11:32:30 AM
Great theme dmmarti, the overview text is a bit small though. Is the scrolling automatic or manual? I also struggled a lot with manual scrolling (press a button to scroll) but couldn't find a way to do it.
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: dmmarti on November 23, 2019, 11:41:00 AM
Yea, I need to make the description text a little bigger and probably the listbox text too.  I'm still testing with description text size - versus width size for that text box to get the best experience.

jedione's code works really good.

When you first enter into a display, the initial game you land upon, the overview text will just "be there" and will not scroll.  When you move to the next/previous game though, that's when the scrolling will begin working.  I don't know of a way to force scrolling upon first entering a display...but, I'll take whatever I can get!
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: jedione on November 23, 2019, 01:13:12 PM
hey,  looking sharp...cool theme..

ps,  in the code under the animation part you will see somthing like

transition.ToNewSelection  change that to    transition.StartLayout  and try

that might make it kick in on start of layout...?
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: bundangdon on November 23, 2019, 06:52:20 PM
Great looking theme! I think I'd replace the image of the NES system with the boxart of each corresponding game-name instead, but that's probably more of a personal preference  :D
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: teeedubb on November 24, 2019, 12:53:23 AM
Hi,

Skin looks good! I have been trying to get overview text to scroll without much avail - any chance you can share to code you used to make it happen?

Thanks
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: dmmarti on November 24, 2019, 06:23:47 AM
Update:

I think i'm getting closer to being done with the new theme.

made the listbox text bigger
made overview game description text bigger (might go a tad bigger maybe still)
added new option for either boxart or system flyer

here's a new demo of it:

https://youtu.be/9E4vuEzfhlg

@teeedubb - sure, if @jedione is okay with me sharing it, I certainly will.
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: Neosys on November 24, 2019, 06:46:09 AM
Hi,

now it looks better. Cool Skin and the overview scrolltext perfect.  8)

Do you share your Layout?

Thanks
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: jedione on November 24, 2019, 07:04:19 AM
sharing is carring... ;)

thats what make AM great...
Title: Re: (WIP) theme for scrolling Overview game descriptions
Post by: dmmarti on November 24, 2019, 07:34:10 AM
Awesome.

Let me get the layout.nut updated with some comments ... and I'll get it uploaded to Github here soon.


Thanks all!
Title: Re: Smooth theme for scrolling Overview game descriptions
Post by: dmmarti on November 25, 2019, 10:08:22 AM
Theme has been released along with a Github repo of Overview files for a lot of systems.

Links are in the first post above.

Again, special thanks for @jedione for his help.

The theme is fairly simple...as I wanted to create a theme for having scrolling game descriptions.  i'm sure it could use some tweaks and/or more polish.  But hopefully this will be a good start for myself (and maybe others?) to now have working code for scrolling overview files.
Title: Re: Smooth theme for scrolling Overview game descriptions
Post by: teeedubb on November 26, 2019, 06:57:29 PM
Thanks guys, I'll take a look at it
Title: Re: Smooth theme for scrolling Overview game descriptions
Post by: calle81 on November 29, 2019, 11:22:28 PM
Cool theme!  :)
Title: Re: Smooth theme for scrolling Overview game descriptions
Post by: teeedubb on December 04, 2019, 12:15:28 AM
Thanks for sharing guys.
I have gotten it to work today, and I am a noob when it comes to AM, so I may be missing something, but it seems like it is not possible to set it up so it automatically adapts to long and short blocks of text? Eg, sometimes long blocks of text are cut short and short blocks of text have long periods before they cycle. I have been mucking around with the text box sizes and x y coordinates to no avail.
Title: Re: Smooth theme for scrolling Overview game descriptions
Post by: dmmarti on December 04, 2019, 04:04:23 AM
Unfortunately it isn't that easy.

The text field has to be set at a specific width since there's currently no way to determine how long the actual text is within the Overview files.

That's why you have some longer text cut off early....and why short text seems to take forever to scroll/repeat/scroll.  The scrolling has to go through the entire length set in the width value before it repeats.

It's a compromise in finding a width that works for both.