Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: Crismikiller on September 30, 2020, 09:02:44 AM

Title: Number of games in the "Display menu"
Post by: Crismikiller on September 30, 2020, 09:02:44 AM
Hello everyone. How do I display the amount of games on a system in the "Display menu" as it appears on the Emulationstation? I saw in the PCCA theme but I can't extract the correct code. I adapted some themes from ES to AM and I would like to put the number of games in the "Display Menu".

Google translator.
Title: Re: Number of games in the "Display menu"
Post by: hermine.potter on September 30, 2020, 11:23:34 AM
Have a look to the theme attractman:
your_AM_folder > layouts > Attrac-Man > layout.nut

this codelines are responsible, to show the amount of games:
Code: [Select]
local l = fe.add_text( "[ListEntry]/[ListSize]", 0, 322, 60, 10 );
l.align = Align.Left;
l.set_rgb( 80, 80, 80 );
Title: Re: Number of games in the "Display menu"
Post by: Crismikiller on October 04, 2020, 03:56:39 PM
In the Menu Display, display the number of the systems not the games.
Title: Re: Number of games in the "Display menu"
Post by: j.e.f.f on October 05, 2020, 02:30:12 AM
I did this in my theme by loading the contents of the associated gameslist file and counting the lines. Read up on Squirrel's `file()` and `readblob()` functions.  I don't have the code to hand as I am on my work laptop, but I remember it not being very difficult once I learned how these functions worked.
Title: Re: Number of games in the "Display menu"
Post by: Yaron2019 on October 17, 2020, 08:58:32 AM
Hello everyone. How do I display the amount of games on a system in the "Display menu" as it appears on the Emulationstation? I saw in the PCCA theme but I can't extract the correct code. I adapted some themes from ES to AM and I would like to put the number of games in the "Display Menu".

Google translator.

Hi, I added this ability in my Great Themes Collection. You can adapt the code from there.
Download and instructions:
http://forum.attractmode.org/index.php?topic=3289.0