Author Topic: [ListSize]  (Read 52 times)

Wenzon

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
[ListSize]
« on: September 14, 2019, 08:39:19 PM »
Is it possible to run [ListSize] by decreasing the number of items? For example, my theme lists 13 systems, 3 of which are not systems but options. I would like to use [ListSize] by decreasing these 3 items.

iOtero

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
Re: [ListSize]
« Reply #1 on: September 15, 2019, 04:43:59 AM »
I have not understood you well, nor do i know where your system lists anything...
I would need to see some of the code you are using or know exactly what list you are talking about.  :-[
I love that on my laptop the eyes shine to the Alien every time i access the ssd... :D

Wenzon

  • Jr. Member
  • **
  • Posts: 22
    • View Profile
Re: [ListSize]
« Reply #2 on: September 15, 2019, 09:55:44 AM »
I hope you can understand with my bad English. ;D
 Below is the code and the image.


Code: [Select]
//Display ListEntry and ListSize info
local lels = fe.add_text( "[ListEntry]/[ListSize]", flx*0.032, fly*0.683, flw*0.25, flh*0.04 );
lels.set_rgb( 255, 255, 255 );
lels.font="LEDSCORE";
lels.charsize = 12;
lels.align = Align.Right;

For example, the magic token [ListSize] the number of items in the game list.

In the "Display Menu" atract mode lists the systems I created. It has a total of 10 systems, but I added options as "shutdown", "favorites" and "all games", the listing goes to 13 items. I would like [ListeSize] to remove these 3 items. As if subtracting [ListSize] -3 to list the 10 items. I feel very difficult in this part of script and programming language. Thanks for the help.

iOtero

  • Sr. Member
  • ****
  • Posts: 366
    • View Profile
Re: [ListSize]
« Reply #3 on: September 15, 2019, 10:32:54 AM »
I need to see your attract.cfg, i think i already know what it is...
My english is very bad, i am from Spain.
I love that on my laptop the eyes shine to the Alien every time i access the ssd... :D

jedione

  • Hero Member
  • *****
  • Posts: 736
  • punktoe
    • View Profile
Re: [ListSize]
« Reply #4 on: Yesterday at 06:28:48 PM »
just a guess but,
 is-int this,,,

     in_cycle             yes
   in_menu            no


in the am, config....?

« Last Edit: Yesterday at 06:30:31 PM by jedione »
help a friend....