I scrolled down a bit and didn’t see this posted.

I scrolled down a bit and didn’t see this posted.

Is there a way to set pages to fade in/out (like folders do) when clicking on a page shortcut?

Before you answer, please note I said Pages, not Desktops. 🙂

]]>
« (Previous Post)
(Next Post) »

23 Commentsto I scrolled down a bit and didn’t see this posted.

  1. Anonymous says:

    < ![CDATA[

    None that I know

    ]]>

  2. Anonymous says:

    < ![CDATA[

    good idea though..

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Right now the only thing I can think of is from script,


    Perhaps a scripting master, one that makes a lot of animations could help.


    Lukas Morawietz, do you know someone? 😛

    ]]>

  4. Anonymous says:

    < ![CDATA[

    TrianguloY nope. Fading is still not possible due to speed issues.

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Fading…true.


    A possibility could be just the normal zoom/unzoom from the center. But perhaps that’s not what Silvia Rivera wants.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Nope it’s not. I want the pages to fade in just like desktops and folders can. Maybe that’s the only option right now. Put stuff in a folder or another desktop.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    FALSE..  I have a fade to black script that works incredibly well..  and only uses item.setPosition..  we’ll see if anyone can think of how it works before I post it.. 😉



    Edit: it’s going to be a bit of a while before I can post the script..  it’s pretty embedded in one of my main scripts and I need to separate the variables it needs from the rest

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Ren Shore you are right, fading to a color is possible. But not fading to Background, like dektops do.

    ]]>

  9. Anonymous says:

    < ![CDATA[

    Alpha modification will be faster in the next release, although I don’t know how it will perform exactly depending on setups.



    But fading out/in pages through a script is a bit tricky anyway because to get a nice effect, fade out and fade in steps need to be interleaved. More precisely this means that when going from page A to page B, items from page B need to start appearing while items from page A are still partly visible. The consequence is that items need to be moved around during the animation.

    ]]>

  10. Anonymous says:

    < ![CDATA[

    Pierre Hébert moving items is not a problem.


    Can’t wait for the next release 🙂

    ]]>

  11. Anonymous says:

    < ![CDATA[

    Maybe soon (before today), as a beta, but I would like to enable item creation through script in this release too, and that’s not so easy because of icon management. If I can’t do it today, then it won’t be before a few days…

    ]]>

  12. Anonymous says:

    < ![CDATA[

    personally i never could tell if a folder was fading or not on my device. desktop i could but folders i couldnt. then again i could have been doing something wrong.

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Curtis Sylvester Jr. You can see it best if you set a small folder to the top, and set open to slide to top and close to slide to bottom. 


    But I agree, the effect isn’t that strong.

    ]]>

  14. Anonymous says:

    < ![CDATA[

    i finally figured it out after months of errors….. i always had the fade option set to custom thinking it was the checkmark oops

    ]]>

  15. Anonymous says:

    < ![CDATA[

    Silvia Rivera I’ll have a look at it tomorrow. I think in latest beta it should be possible now.

    ]]>

  16. Anonymous says:

    < ![CDATA[

    Yay! Thanks for all your hard work guys!

    ]]>

  17. Anonymous says:

    < ![CDATA[

    Pierre Hébert how much interleave do you use in desktop fade?


    I want to create an as similar as possible effect

    ]]>

  18. Anonymous says:

    < ![CDATA[

    ok im not noticing the fade in pages but the menu item is there. perhaps it could be because all my items are pinned as they have to be to keep them from moving when i drop down my widget from the top?

    ]]>

  19. Anonymous says:

    < ![CDATA[

    Lukas Morawietz I don’t know, this is a system animation. It might be that both fade in and out are played simultaneously

    ]]>

  20. Anonymous says:

    < ![CDATA[

    //config


    var speed=50;//lower is faster, 1 for instant, 255 for slowest


    //endconfig




    var e=LL.getEvent();


    var c=e.getContainer();


    var i=e.getItem()||c.getItemById(parseInt(LL.getScriptTag()));


    if(e.getSource()!=”SHORTCUT”)


    {


    if(i!=null)


    {


    i.setTag(JSON.stringify([Math.round(c.getPositionX()/c.getWidth())*c.getWidth(),Math.round(c.getPositionY()/c.getHeight())*c.getHeight()]));


    Android.makeNewToast(“Page saved.”,false).show();


    }


    else Android.makeNewToast(“Error: No shortcut selected.\nTap on the shortcut first.”,false).show();


    return;


    }


    if(i.getTag()==null)


    {


    LL.setScriptTag(i.getId());


    Android.makeNewToast(“Shortcut selected.\nNow launch the script from menu where you want the shortcut to point at”,false).show();


    return;


    }



    var goTo=JSON.parse(i.getTag());


    var start=[Math.round(c.getPositionX()/c.getWidth())*c.getWidth(),Math.round(c.getPositionY()/c.getHeight())*c.getHeight()];


    c.setPosition(start[0],start[1]);


    if(goTo==start)return;


    var dwidth=c.getWidth();


    var dheight=c.getHeight();


    var page0=[];


    var page1=[];


    var counter=[0,0];


    var items=c.getItems();


    var zorder=items.length;


    for(a=0;a


    {


    var item=items.getAt(a);


    if(item.getProperties().getString(“i.pinMode”)==”NONE”)


    {


    var x=item.getPositionX();


    var y=item.getPositionY();


    if(x>=start[0]&&x=start[1]&&y


    {


    page0[counter[0]]=item;


    counter[0]++;


    zorder=Math.min(zorder,c.getItemZIndex(item.getId()));


    }


    else if(x>=goTo[0]&&x=goTo[1]&&y


    {


    page1[counter[1]]=item;


    counter[1]++;


    }


    }


    }


    page0.length=counter[0];


    page1.length=counter[1];


    for(a=0;a


    {


    var item=page1[a];


    var x=(item.getPositionX()%dwidth+ dwidth)%dwidth;


    var y=((item.getPositionY()%dheight +dheight)%dheight);


    item.getProperties().edit().setInteger(“i.alpha”,255).commit();


    if(item.getProperties().getBoolean(“i.onGrid”))


    {


    var cell=item.getCell();


    item.setCell(cell.getLeft()-Math.round((goTo[0]-start[0])/c.getCellWidth()),cell.getTop()-Math.round((goTo[1]-start[1])/c.getCellHeight()), cell.getRight()-Math.round((goTo[0]-start[0])/c.getCellWidth()),cell.getBottom()-Math.round((goTo[1]-start[1])/c.getCellHeight()));


    }


    else item.setPosition(start[0]+x,start[1]+y);


    if(c.getItemZIndex(item)>=zorder)c.setItemZIndex(item,0);


    }


    var diff=0;


    LL.writeToLogFile(page0+”\n”+page1,false);


    step();



    function step()


    {


    diff+=255/speed;


    if(diff<255)


    {


    for(a=0;a


    {


    var item=page1[a];


    item.getProperties().edit().setInteger(“i.alpha”,diff).commit();


    }


    for(a=0;a


    {


    var item=page0[a];


    item.getProperties().edit().setInteger(“i.alpha”,255-diff).commit();


    }


    setTimeout(step,0);


    }


    else


    {


    for(a=0;a


    {


    var item=page1[a];


    var x=(item.getPositionX()%dwidth+ dwidth)%dwidth;


    var y=((item.getPositionY()%dheight +dheight)%dheight);


    item.getProperties().edit().setInteger(“i.alpha”,255).commit();



    if(item.getProperties().getBoolean(“i.onGrid”))


    {


    var cell=item.getCell();


    item.setCell(cell.getLeft()+Math.round((goTo[0]-start[0])/c.getCellWidth()),cell.getTop()+Math.round((goTo[1]-start[1])/c.getCellHeight()), cell.getRight()+Math.round((goTo[0]-start[0])/c.getCellWidth()),cell.getBottom()+Math.round((goTo[1]-start[1])/c.getCellHeight()));


    }


    else item.setPosition(goTo[0]+x,goTo[1]+y);


    }


    c.setPosition(goTo[0],goTo[1],1,false);


    for(a=0;a


    {


    var item=page0[a];


    item.getProperties().edit().setInteger(“i.alpha”,255).commit();


    }


    }


    }

    ]]>

  21. Anonymous says:

    < ![CDATA[

    Just create a shortcut to this script, this will work as desktop bookmark with fade.



    Edit: last-minute fix for unpinned items.



    For further instructions look here


    http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_fading_page_bookmark

    ]]>

  22. Anonymous says:

    < ![CDATA[

    Lukas Morawietz you should post this as a new post (with a video preview if possible 🙂


    I’m sure there are a lot of people who didn’t saw it.

    ]]>

  23. Anonymous says:

    < ![CDATA[

    TrianguloY this is planned already. I just didn’t had the time and a pc at the same time…

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *