Home
Help
Search
Login
Register
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Question about ListEntry
« previous
next »
Print
Pages: [
1
]
Author
Topic: Question about ListEntry (Read 18613 times)
markc74
Full Member
Posts: 32
Question about ListEntry
«
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
Logged
raygun
Administrator
Sr. Member
Posts: 393
Re: Question about ListEntry
«
Reply #1 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
Logged
markc74
Full Member
Posts: 32
Re: Question about ListEntry
«
Reply #2 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
Logged
Print
Pages: [
1
]
« previous
next »
Attract-Mode Support Forum
»
Attract-Mode Support
»
Scripting
»
Question about ListEntry