Author Topic: Number of games in the "Display menu"  (Read 456 times)

Crismikiller

  • Newbie
  • *
  • Posts: 8
    • View Profile
Number of games in the "Display menu"
« 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.

hermine.potter

  • Hero Member
  • *****
  • Posts: 598
    • View Profile
Re: Number of games in the "Display menu"
« Reply #1 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 );
AM Version : 2.6.1
Input : Mad Catz Brawlstick; Mouse; Keyboard; Xbox360 Wireless
Cabinet : Yes
OS : Windows10 Pro
System : Dell Precision T3500 ; Intel X5650 ; 12GB RAM

Crismikiller

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Number of games in the "Display menu"
« Reply #2 on: October 04, 2020, 03:56:39 PM »
In the Menu Display, display the number of the systems not the games.

j.e.f.f

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: Number of games in the "Display menu"
« Reply #3 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.

Yaron2019

  • Sr. Member
  • ****
  • Posts: 310
    • View Profile
Re: Number of games in the "Display menu"
« Reply #4 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