Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started 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.
-
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:local l = fe.add_text( "[ListEntry]/[ListSize]", 0, 322, 60, 10 );
l.align = Align.Left;
l.set_rgb( 80, 80, 80 );
-
In the Menu Display, display the number of the systems not the games.
-
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.
-
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