Attract-Mode Support Forum

Attract-Mode Support => Scripting => Topic started by: henrikes on December 23, 2019, 01:02:33 PM

Title: How to list all the filters available
Post by: henrikes on December 23, 2019, 01:02:33 PM
Hi Guys,

I hope you guys can help me out, im trying to figure out how to list all the filters i have but i havent managed to do so....

Any help will be appreciated. :)
Title: Re: How to list all the filters available
Post by: jedione on December 23, 2019, 02:48:28 PM

here you are....

local fillter1 = fe.add_text( "[FilterName]", flx*0.100, fly*0.100, flw*0.100, flh*0.100 );

local fillter2 = fe.add_text("[FilterName]", flx*0.100, fly*0.200, flw*0.100, flh*0.100 )
fillter2.filter_offset = -1

local fillter3 = fe.add_text("[FilterName]", flx*0.100, fly*0.300, flw*0.100, flh*0.100 )
fillter3.filter_offset = -2
Title: Re: How to list all the filters available
Post by: keilmillerjr on December 23, 2019, 07:13:40 PM
You might want to find the length of the filter array and then dynamically create your objects with a loop.

More details would help us help you better.
Title: Re: How to list all the filters available
Post by: henrikes on December 24, 2019, 01:53:21 AM

here you are....

local fillter1 = fe.add_text( "[FilterName]", flx*0.100, fly*0.100, flw*0.100, flh*0.100 );

local fillter2 = fe.add_text("[FilterName]", flx*0.100, fly*0.200, flw*0.100, flh*0.100 )
fillter2.filter_offset = -1

local fillter3 = fe.add_text("[FilterName]", flx*0.100, fly*0.300, flw*0.100, flh*0.100 )
fillter3.filter_offset = -2

Thank you so much :)

You might want to find the length of the filter array and then dynamically create your objects with a loop.

More details would help us help you better.

That is a good idea, i just need to figure out how to do that.

The goal is to have the list of available filters present at all time.