Attract-Mode Support > Themes

Games list fade out

(1/1)

clockman:
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.

zestful:
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

Navigation

[0] Message Index

Go to full version