Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started by: zeroid 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?
-
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
-
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.