Attract-Mode Support Forum

Attract-Mode Support => Themes => Topic started by: clockman on August 07, 2024, 04:55:55 PM

Title: Games list fade out
Post by: clockman on August 07, 2024, 04:55:55 PM
I was wondering how to make my games list fade out. Here is my layout.nut of my games list
local lb = fe.add_listbox( 200, 182, 641, 827 );
lb.font = "BebasNeueBook";
lb.charsize = 40;
lb.selbg_alpha = 0;
lb.sel_alpha = 0;
lb.sel_style = Style.Bold;
lb.align = Align.Left
lb.alpha = 200;
lb.set_rgb( 0, 0, 0 );

local main = fe.add_text( "[Title]", 200, 182, 641, 827 );
main.font = "BebasNeueBook";
main.charsize = 40;
main.alpha = 255
main.set_rgb( 0, 136, 255 );
main.align = Align.Left

So how would i make the games list fade out? Any help would be great.
Title: Re: Games list fade out
Post by: zestful on August 08, 2024, 02:27:36 PM
You can use inertia, and change alpha from 255 to 0 for the listbox

https://github.com/oomek/attract-extra/blob/main/modules/inertia.nut
Title: Re: Games list fade out
Post by: Elaphe666 on October 28, 2024, 10:27:24 AM
Do you mean, like the list fades to the background from the selected game to the extremes (top and bottom)? I would also like to do that. How do I use modules?
Title: Re: Games list fade out
Post by: Elaphe666 on October 30, 2024, 02:21:50 AM
I have achieved this in my theme by adding a .png over my gamelist. It is the same size and has a vertical grandient (from the background color to transparent and then again to the background color). It works great, as long as you have a plain background color.
Title: Re: Games list fade out
Post by: zestful on October 30, 2024, 05:07:24 PM
I think this was answered by tankman on the attract mode discord, probably better to join that: https://discord.gg/vzT9CX96cd