Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: markc74 on February 12, 2015, 03:08:46 PM

Title: Question about ListEntry
Post by: markc74 on February 12, 2015, 03:08:46 PM
Hi - loving the frontend but a bit stuck and could do with some help if anyone has the time!

I'm trying to map the ListEntry value to a variable so I can do a calculation on it. I'm going to use this value to position a graphic on the screen depending on what percentage you are through the current list).

How do I do this? I've tried pretty much every combination I can think of!

Many thanks in advance. Once this is done my theme will be ready to share...!

Mark
Title: Re: Question about ListEntry
Post by: raygun on February 13, 2015, 05:50:46 PM
Hi Mark,

To get the list entry value, just get the value from "fe.list.index".

So:

Code: [Select]
local my_index = fe.list.index;

should work... the counting starts at 0 instead of 1 with [ListEntry]

I hope that helps
Title: Re: Question about ListEntry
Post by: markc74 on February 14, 2015, 05:42:55 AM
That's aces thanks very much! You answered another question I had in the byoac forum so reckon I'm nearly there now.

Best front-end I've ever used Btw!

Mark