Author Topic: Question about ListEntry  (Read 1655 times)

markc74

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
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

raygun

  • Administrator
  • Sr. Member
  • *****
  • Posts: 390
    • View Profile
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

markc74

  • Jr. Member
  • **
  • Posts: 24
    • View Profile
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