TrianguloY
now browsing by tag
Resumed and paused events of a dynamic text don’t work.
Didn’t try with all events, but run a script and some others don’t work.
]]>parallax background, accelerometer powered
This is a new script I made with the help of Lukas Morawietz. All the new bind class, and accelerometer events code was made by Lukas (also some suggestions), the position computation, tags and relative is mine.
The script takes the accelerometer values and place the item accordingly. It is size-dependent so the bigger the item is the more it will move. (Items smaller that the screen size will move a bit odd)
The settings are a parameter to control the lerp (smooth change from the previous value to the new one) otherwise it will move a lot. The other is a threshold to avoid small movements if your accelerometer sends changes even when the device rest, for low end devices.
Instructions:
– Choose an item. Remember to set a picture as background and hide the icon and text (or not, that’s up to you)
– Set this script in the resumed event of the item
– Important: detach the item
– Optional but recommended: set the script in the paused event of the item
– Optional: you may want to pin the item too.
The movement is stopped automatically when the launcher lost focus, but I recommend also to set the script in the paused event (specially if you use different desktops). It is made so if you run it from other events (a swipe or even the scripts menu) it stops. Useful if you want to edit the item.
To reload the script just turn off/on the screen. You may want to do it when setting the event and when changing the size of the item.
It works in folders and in panels too. And also you can set it in as much items as you want (with caution) The second video has two items, the galaxy background and the stars, both items has different sizes.
Note: I needed to add a small code to avoid the ‘0-size’ bug. If you get an error when the container is loaded just turn off/on the screen. Also I couldn’t test it myself long enough. If you get an error or it don’t work as expected write a comment.
(Again, thanks Lukas for helping me)


In the resumed event, if the container is not loaded their size is 0,0.
This is relatively easy to check and do something to fix it.
However, if you have the screen in portrait only, open a horizontal app (it force the device in horizontal) and then go back to the launcher, the returned size is the horizontal one, and this is much more difficult to check (you need to ask the correct size or store it…)
I guess it happen the same when going from vertical to horizontal.
Isn’t any way to force that loaded event to run after the container is loaded, but before it is shown to the user?
]]>What about this suggestion?
In the app drawer two new events:
‘App installed’ triggered when an app is installed
‘App uninstalled’ triggered when an app is uninstalled
Those events are designed to run scripts. If possible also add the label of the installed/uninstalled app that triggered the action as a defined variable or to the LL.getEvent().getData()
This will allow to change the style of that new app instead of change all at load, place the app in a folder automatically, keep a log of recently uninstalled apps…
]]>Another different idea (I like to try different things, not to improve previous ones :P )
The idea of this design is ‘different homes’
Colors may change. (sorry for the poor quality of the lightning…and lines in general. Made from mobile)


From another post:
I’ve created this section to split the discussion section into short questions and long topics.
Of course the label can (may) change.
If you want to ask something specific, the idea is to post it here. Perhaps in the future this will become like a ‘Q&A’ section.
If you want to start a discussion (that probably will be long) the idea is to post it in the discussion section.
Old posts will remain where they are.
]]>From Pierre Hébert post:
“…this (LL) is some kind of toolbox to create a home screen…”
Toolbox, material design, house but not a house…
First I thought about adding a paint brush, a screwdriver or even a wench, but I didn’t like the effect. That’s why I added that android icon.
The other one tries to be the ‘scripting’ feature…tries.
This is another point of view for the icon discussion. Keep the idea (a toolbox and stickers) but not the picture itself (I made it entirely with my mobile phone…not bad I must admit )
As usual, this can make you think and gave ideas to other possibilities.


Is there any way to duplicate(make a copy) of a ‘Image’?
I tried duplicating the bitmap, the canvas…but I couldn’t find the right combination.
This is also a suggestion to a Image Image.copy(Image src) or similar
Another question: Bitmap class is available, or at least their functions. However static functions can’t be launched from Bitmap.copy(…), it throws a ‘Bitmap not defined’ error. However calling them from another bitmap works, even thought that bitmap is not used.
Is there something I’m missing? Is there any reason for this?
]]>
D5 Creation