I have tried with this
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();
And not work...