I’m trying around with creating page transition animations.
I’m trying around with creating page transition animations.
I have the problem, that setting the alpha of an item is a very heavy operation. Is there a way to reduce the script executions in positionchanged event?
]]>
< ![CDATA[
You can just use a value stored in self at the beginning of the script to allow the execution one of X times.
if(self.val==0){
self.val=10 (or something)
}else{
–self.val
return
}
]]>
< ![CDATA[
OK.
Another question: how can I store more than one value in a tag?
]]>
< ![CDATA[
Use JSON. I understood it with this 🙂
http://www.pierrox.net/android/applications/lightning_launcher/script/reference/net/pierrox/lightning_launcher/script/api/Item.html#setTag(java.lang.String)
]]>
< ![CDATA[
TrianguloY thank you.
I got the first animation “bulldoze” working! I will share soon, it’s improveable
]]>
< ![CDATA[
It could be possible, but it requires to create “shortcuts” inside the code. I think I will add some shortcuts in the long term to speedup some operations like this one.
]]>