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. 🙂
]]>
< ![CDATA[
None that I know
]]>
< ![CDATA[
good idea though..
]]>
< ![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? 😛
]]>
< ![CDATA[
TrianguloY nope. Fading is still not possible due to speed issues.
]]>
< ![CDATA[
Fading…true.
A possibility could be just the normal zoom/unzoom from the center. But perhaps that’s not what Silvia Rivera wants.
]]>
< ![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.
]]>
< ![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
]]>
< ![CDATA[
Ren Shore you are right, fading to a color is possible. But not fading to Background, like dektops do.
]]>
< ![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.
]]>
< ![CDATA[
Pierre Hébert moving items is not a problem.
Can’t wait for the next release 🙂
]]>
< ![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…
]]>
< ![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.
]]>
< ![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.
]]>
< ![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
]]>
< ![CDATA[
Silvia Rivera I’ll have a look at it tomorrow. I think in latest beta it should be possible now.
]]>
< ![CDATA[
Yay! Thanks for all your hard work guys!
]]>
< ![CDATA[
Pierre Hébert how much interleave do you use in desktop fade?
I want to create an as similar as possible effect
]]>
< ![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?
]]>
< ![CDATA[
Lukas Morawietz I don’t know, this is a system animation. It might be that both fade in and out are played simultaneously
]]>
< ![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();
}
}
}
]]>
< ![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
]]>
< ![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.
]]>
< ![CDATA[
TrianguloY this is planned already. I just didn’t had the time and a pc at the same time…
]]>