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

clockman

  • Sr. Member
  • ****
  • Posts: 109
    • 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

  • Full Member
  • ***
  • Posts: 35
    • 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

Elaphe666

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

Elaphe666

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

zestful

  • Full Member
  • ***
  • Posts: 35
    • View Profile
Re: Games list fade out
« Reply #4 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