Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started 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
-
Hi Mark,
To get the list entry value, just get the value from "fe.list.index".
So:
local my_index = fe.list.index;
should work... the counting starts at 0 instead of 1 with [ListEntry]
I hope that helps
-
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