Author Topic: Games list fade out  (Read 1399 times)

clockman

  • Sr. Member
  • ****
  • Posts: 107
    • View Profile
Games list fade out
« 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.

zestful

  • Jr. Member
  • **
  • Posts: 20
    • View Profile
Re: Games list fade out
« Reply #1 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