376
Themes / Re: Layout background design
« on: June 17, 2018, 11:40:53 AM »
Thanks, but what I'm asking is not programming, but graphic help, with attractive designs and color combinations.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
local my_film = randInt(30);
my_film = my_film.tostring() + ".png";
local film = fe.add_image("posters/films/" + my_film, 0, 0, flw*0.408, flh*0.6);
Another simple solution is put some "random" jpg´s into the "scrapper/[sytem]" folder.
I mean , you have a "NES" layou.nut with something like
fe_add.artwork = icon...
Then just create a folder "scrapper/nes/icon"
Inside 1.jpg , 2.jpg , 3.jpg or wathever you want
if (fe.load_module("Debug")) log <- Log();
What is “data in a folder?†It would help me to better help you.
01 - Tom Odell - Grow Old With Me.m4a
02 - Tom Odell - Hold Me.m4a
03 - Tom Odell - Another Love.m4a
04 - Tom Odell - I Know.m4a
05 - Tom Odell - Sense.m4a
06 - Tom Odell - Can't Pretend.m4a
07 - Tom Odell - Till I Lost.m4a
08 - Tom Odell - Supposed To Be.m4a
09 - Tom Odell - Long Way Down.m4a
10 - Tom Odell - Sirens.m4a
11 - Tom Odell - I Think It's Going To Rain Today.m4a
12 - Tom Odell - Storms.m4a
13 - Tom Odell - Heal.m4a
14 - Tom Odell - Till I Lost (Demo).m4a
15 - Tom Odell - Grow Old With Me (Demo).m4a
folder.jpg
local mp = MediaPlayer();
class PlayList
{
constructor()
{
for(local i=0; i<player_list.len(); i++)
{
player_list.push(fe.add_text("", text_x, text_y+(i*30), text_wide-text_x, 0));
player_list[i].align = Align.Left;
player_list[i].font = "anaheim";
player_list[i].charsize = font_list_size;
player_list[i].set_rgb(Rp,Gp,Bp);
}
player_list.visible=false;
fe.add_signal_handler(this, "on_show")
}
function on_show(shw)
{
if (shw == "custom4")
{
player_list.visible=!player_list.visible;
return true;
}
return false;
}
}
local pl = PlayList();
Just a quick glance, may or may not resolve your issue. Declare your variable, player_list.
class PlayList
{
show_text=null;
constructor()
{
show_text = fe.add_text("[Title]", flx*0.230, fly*0.001, flw*0.360, flh*0.490);
show_text.visible=false;
show_text.charsize = 20;
fe.add_signal_handler(this, "on_show")
}
function on_show(shw)
{
if (shw == "custom4")
{
show_text.visible=!show_text.visible;
return true;
}
return false;
}
}
local pl = PlayList();
class PlayList
{
show_text=null;
constructor()
{
for(local i=0; i<player_list.len(); i++)
{
player_list.push(fe.add_text("", text_x/2, text_y+(i*30), text_wide-text_x, 0));
player_list[i].align = Align.Left;
player_list[i].font = "anaheim";
player_list[i].charsize = font_list_size;
player_list[i].set_rgb(Rp,Gp,Bp);
}
fe.add_signal_handler(this, "on_show")
}
function on_show(shw)
{
if (shw == "custom4")
{
show_text.visible=!show_text.visible;
return true;
}
return false;
}
}
Hi,
The flicker happens when you change to next/previous game whilst the fade transition time is not sitll completed.
Is this a bug?