Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: marcelogon on August 09, 2022, 01:14:32 AM

Title: Re: Help needed for my layouts: Scraping and displaying additional game info?
Post by: marcelogon on August 09, 2022, 01:14:32 AM
I use arcade games on advmame emulator and nevato themed. Is there any way to show the information of the game using the nevato theme?
Title: Re: Help needed for my layouts: Scraping and displaying additional game info?
Post by: progets on August 09, 2022, 01:48:11 AM
Your post has been split because you replied to a seven year old topic.

First you need to make sure your romlists contain the details you want to show.

Second you need to make sure your layout.nut will show the details of the romlist.
Title: Re: Help needed for my layouts: Scraping and displaying additional game info?
Post by: marcelogon on August 12, 2022, 04:55:47 PM
The romlists have yes, depending on the theme I use, it shows the information.
Is there a way to insert commands in layout.nut of nevato theme and am-theme-mvsops-master theme for Neo-geo to show game information? If you can, send me the commands to copy and paste in layout.nut
Just a layman, I understand a little.
Title: Re: Help needed for my layouts: Scraping and displaying additional game info?
Post by: marcelogon on August 12, 2022, 09:08:53 PM
I added this in Layout.nut of the nevato theme and in another theme that I use for neo geo and now they show in the footer, the year of the game, the title, the manufacturer and on the right side of the footer the cardinal numeral of the game, that was it that I wanted.

/////////////////////////////////////////////////////////
// Game information and text frame
/////////////////////////////////////////////////////////////////

//Title text info
local textt = fe.add_text( "[Title] - [Manufacturer]", flx*0.315, fly*0.955, flw*0.6, flh*0.028  );
textt.set_rgb( 225, 255, 255 );
//textt.style = Style.Bold;
textt.align = Align.Left;
textt.rotation = 0;
textt.word_wrap = true;

//Year text info
local texty = fe.add_text( "[Year]", flx*0.18, fly*0.942, flw*0.13, flh*0.05 );
texty.set_rgb( 255, 255, 255 );
//texty.style = Style.Bold;
//texty.align = Align.Left;

//display filter info
local filter = fe.add_text( "[ListFilterName]: [ListEntry]-[ListSize]  [PlayedCount]", flx*0.7, fly*0.962, flw*0.3, flh*0.022 );
filter.set_rgb( 255, 255, 255 );
//filter.style = Style.Italic;
filter.align = Align.Right;
filter.rotation = 0;