Home
Help
Search
Login
Register
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Retrive a game list
« previous
next »
Print
Pages: [
1
]
Author
Topic: Retrive a game list (Read 17243 times)
zeroid
Full Member
Posts: 30
Retrive a game list
«
on:
May 31, 2015, 02:06:51 AM »
Hi, Is there a way to get a list of games?
perhaps stored it into an array or list like how c# does?
Logged
liquid8d
Global Moderator
Sr. Member
Posts: 442
Re: Retrive a game list
«
Reply #1 on:
May 31, 2015, 12:06:57 PM »
Might need an example of what specifically you want to do with a "list of games". The frontend stores the currently selected list of games on its own. If you want info about any of them, you can use the fe.game_info() function by specifying what info and the game index:
https://github.com/mickelson/attract/blob/v1.5.2/Layouts.md#game_info
fe.list.index is the currently selected game index
Logged
zeroid
Full Member
Posts: 30
Re: Retrive a game list
«
Reply #2 on:
June 01, 2015, 03:32:59 AM »
Thank you.
But what I'm looking for is an array that i can access which has a list of game names.
anyway, i've managed to make a small function for that.
Thanks.
Logged
Print
Pages: [
1
]
« previous
next »
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Retrive a game list