I am a total noob in scripting but today I finally learned a lot of things in javascript and finally managed to make…
Posted by: pierrot | on April 10, 2015
I am a total noob in scripting but today I finally learned a lot of things in javascript and finally managed to make fully working animations. Here are 2 screenshots and a gif to show how it works.
Also I’m having a bug. The widgets that are moved by the script sometimes just goes fully blank and I can’t open them. I don’t know if it’s launcher or ZW fault. The way to fix this is to open widget editor of any widget and it fixes.
]]>Posted in | 19 Comments »
Tags:
« Just upgraded to Lollipop last night. Today I discover that the “Phone” app doesn’t work now. (Previous Post)
(Next Post) A wierd bug has been plaguing me since b5 (or 6). »
< ![CDATA[
Looks terrific!
]]>
< ![CDATA[
Arun kumar Thank you very much ☺
]]>
< ![CDATA[
Josh Gray thanks!
]]>
< ![CDATA[
Josh Gray everything you can see on the home screen was made in Zopper
]]>
< ![CDATA[
How do you move items depending on the scroll position?
]]>
< ![CDATA[
James Coyle As I said at the beginning of the post I’m using a script lol
]]>
< ![CDATA[
Patryk Goworowski I know that. Do you have code you can share?
]]>
< ![CDATA[
James Coyle Yeah, why not. Here it is:
var d=LL.getCurrentDesktop();
var y=d.getPositionY();
// picture
d.getItemByName(“Picture”).setPosition(0,y/2);
//topbar front
var T1=d.getItemByName(“Topbar”);
var c=d.getItemByName(“Topbar”).getPositionY();
if(c< -192)
T1.setPosition(0,-192);
else
T1.setPosition(0,-2*y);
//second topbar
T2=d.getItemByName(“Topbar2”);
var pos=T2.getPositionY();
var x=y-192
if(c=-192 && pos<382)
T2.setPosition(0,x*2);
else
T2.setPosition(0,y);
//FAB
var f=d.getItemByName(“FAB”);
var fp=f.getPositionY();
var z=y+277.5;
var zy=y+953
if(fp< =1358)
f.setPosition(584,z*2);
else
f.setPosition(584,zy);
]]>
< ![CDATA[
Thanks for sharing.
The problem with disappearing widgets is mainly caused by zooper using to much memory. I found uccw works much better.
]]>
< ![CDATA[
Sergio Azar No problem, but Why only widgets that are moved by script disappears, but others don’t?
]]>
< ![CDATA[
I can’t give you a definite answer but it has been discussed on other posts. As I understand it, animated widgets uses more memory when detached. LLX uses a certain amount of memory for each function it performs, zooper widgets in particular demands more memory so it disappears as a result.
]]>
< ![CDATA[
Sergio Azar Ok, thanks for information ☺
]]>
< ![CDATA[
Patryk Goworowski So LL.getCurrentDesktop().getPositionY(); is the scroll position of the desktop? And where do you set this script?
]]>
< ![CDATA[
James Coyle Yeah, just set this script to run when ‘position changed’ I didn’t know how to make it work like this till yesterday ☺
]]>
< ![CDATA[
Patryk Goworowski Ok thanks. That was pretty much all I need to know for my setup. 😀
]]>
< ![CDATA[
James Coyle I’m glad I could help. Hope you make something cool with this script 😀
]]>
< ![CDATA[
hi, can u make a tutorial on ur blogspot please.
]]>
< ![CDATA[
Daniel S. Yeah, probably I will make one, but I don’t know when because now I’m very busy with school and first I want to finish my setup and maybe add some useful scripts or write a better code.
]]>
< ![CDATA[
ok nice! i have time 🙂
]]>