Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: calle81 on May 23, 2018, 04:36:11 AM

Title: New feature. Allow user to select which .nut file to use from layout config
Post by: calle81 on May 23, 2018, 04:36:11 AM
This new feature is pretty awesome. I use multiple layout*.nut files in my HyperPie theme and with this new feature we will be able to set a specific nut per display.

https://github.com/mickelson/attract/commit/7b1cc07f2274cca87d11e928a1fdc598d876bc6a

Also make note of this new feature which allow you to configure layout options per display and not only per theme. Perfect for universal themes like the HyperPie theme.

https://github.com/mickelson/attract/commit/f55779e54ab04305c3604a3f0b894b5e95ce0888
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: jedione on May 23, 2018, 06:55:51 AM
iv just used the toggle layout,,is all

so what is the advantage...
is it not just doing the same thing?
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: calle81 on May 23, 2018, 02:03:42 PM
You dont have toggle through all layouts or "views" as I call them. You can select the one you want for each display through the display options. Some views might look better for specific systems. Arcade views versus console views and so on.
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: verion on May 24, 2018, 03:21:30 AM
@jedione

As I see it - main (great) difference is that you don't have to have multiple copies of the theme - if only layout.nut is changing.
Easier to maintain especially if your setup is more complicated (like multiple themes/settings for platforms/games/collections).
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: jedione on May 24, 2018, 06:38:23 AM
gocha,   thanks guys....
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: progets on May 29, 2018, 09:57:48 PM
Great features! The old way was more of a workaround hack. This makes more sense and is more efficient.
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: iOtero on June 02, 2018, 03:41:49 AM
I'm using the Orbit layout.
And "per_display" does not work for me.

In attract.cfg, change what changes in each layout of the Orbit, it only saves me the one applied to the last change

Code: [Select]
layout_config Orbit
param                bg_image
param                count 5
param                enable_bloom Yes
param                orbit_art marquee
param                spin_ms 120
param                static_effect Yes

Do we have to do more than put per_display = "true" in the config?

Code: [Select]
</ label="Orbit Artwork", help="The artwork to spin into orbit", options="marquee,flyer,wheel", order=1, per_display="true" />
orbit_art="marquee";

I have tried with Reflect layout and it does not keep the different displays either.

I am using attract-mode 2.3.0 for windows 64bits. Another version is needed? Which?

In nightly builds I only see olders versions.
Title: Re: New feature. Allow user to select which .nut file to use from layout config
Post by: iOtero on June 04, 2018, 12:14:30 PM
I just contacted Mickelson on GitHub and he told me that the only way to make the per_display work is to compile the version we are developing on our own or wait for the new version of attract mode.

And I have already tried to compile attracmode 3 times on my own in windows 10, but I have not managed it.

I have put the errors that come to me in the forum, but nobody answers me :D

Sorry, my english is very, very, very bad ;D