Attract-Mode Support Forum
Attract-Mode Support => Scripting => Topic started 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. :)
-
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
-
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.
-
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.