TrianguloY

now browsing by tag

 
 

Variable editor tool

Variable editor tool

This is a tool script to help editing the list of lightning variables.

It lets you modify current variables and/or create new ones.

How to use it:

Launch the script, the list of all current variables and an extra ‘create a variable’ entry will be shown.

Click a variable to see it’s type and value. You can modify it’s value and save it. If you click cancel it will ask to delete it.

If you choose ‘create a variable’ input a name and a value and it will be created.

Note: the variables are set using lightning’s action ‘set a variable’. This means that the value is converted to it’s type by lightning itself, this script doesn’t use the script API calls because they need to specify a type.

For the ‘how does this work?’:

Saves lightning to force it to save the variables into the variables file.

Reads the available variables from the variables file (because there is no way to obtain the variables elsewhere, or at least I don’t know how)

Shows the list of variables to choose, a lot of prompts, etc.

To set/create a value it calls lightning activity ‘set a variable’.

To delete a variable it calls LL.getVariables().edit().setString(name,null).commit();

]]>

I’m not used to ask questions, but when I need to I do.

I’m not used to ask questions, but when I need to I do.

How can I delete a variable so it doesn’t show in the lightning variables list?

(And I’m asking for a ‘normal’ way from a lightning menu and/or script. I know I can edit the variables file and force kill the launcher Lukas Morawietz​ 😉

]]>

This is a universal copy&paste binding to easy set up.

This is a universal copy&paste binding to easy set up.

It allows you to make easily (basic binding knowledge required, this is a help tool) a binding outputting a number between two values based on a 0/1 variable.

Use this with the easy toggle

1-$variable

Features:

Easy to set variable to use

Custom initial/final values

Custom duration of all animation steps (offset, duration…)

Custom animation type

Optional autoback feature (will automatically play back on each change, like a spring)

]]>

So, Lukas Morawietz​ was having a lot of fun publishing scripts on the Play Store, so I decided to try myself ;)

So, Lukas Morawietz​ was having a lot of fun publishing scripts on the Play Store, so I decided to try myself 😉

The truth is that I never published any script as apk (and I don’t think I will) because I don’t have the time to maintain all of them. However this one in particular is specially useful for me, and I keep updating my local copy adding features. For this reason I decided to update this one as apk. I hope I will update it more frequently than when it was in the wiki.

I also added some nice features in the package (check the Store description).

This version has a lot of changes and some fixes from the latest wiki one, so if you use it I recommend to check it.

Also, and this is important, I am unable to test the apk on virtual devices (java problem, I spent too much time trying to fix) so if you have any problem with a specific android version/device send me some captures and I’ll try to fix them.

https://play.google.com/store/apps/details?id=com.trianguloy.llscript.fastRunTool
]]>

Bug for Pierre Hébert​

Bug for Pierre Hébert​

As seen on the video:

When you tap the padding/border/margin of a folder, the ripple animation is played on all items.

It’s a nice effect though 🙂

(It doesn’t work if you tap the folder background)

[Note: this bug is not from the latest versions. It was before too]

]]>

Bindings bug.

Bindings bug.

I think this bug happen always with animated bindings, but as nobody reported it yet I’ll provide the specific steps I tried.

Set a binding to animate(‘$b’) the label of an item.

Make a shortcut to change the b variable, value 1-$b (nice trick 😉

When the launcher restarts, or sometimes when it is in background long enough and you open it again (not exactly killed, but not sure the state it become) when clicking the shortcut the first time the change is not animated. Successive clicks does. (I mean, the first click change the label instantly, the second/third/… clicks change the label with animation)

Note: Doesn’t matter which animation. Doesn’t matter if the shortcut simply set the value directly. Doesn’t matter the property.

]]>

I published an update to the repository Importer app.

I published an update to the repository Importer app.

Those are the changes: ( mainly, if not all, made by Lukas Morawietz​ )

– Dark theme. Change it in setings

– Share the current page. Like ‘open in browser’ but not necessary with the browser.

– Settings for new scripts dialogs. Now you can get the changes on an alert instead of a Toast (configurable)

– Improved editor: Landscape mode, more settings, save state…

And as usual some fixes.

]]>

full container screenshot utility

full container screenshot utility

This script is a tool specially designed for template/screens makers.

It creates a ‘screenshot’ of a container, but the size of the image is as big as the container and all the items are shown, even the ones out of view. The image is saved in png.

Both the system wallpaper and the desktop wallpaper are not drawn.

You can specify also to show disabled items and/or stop points.

To make a screenshot just go to the container, scroll it where you want it to be, and run the script from it. The image is saved in a custom configurable path.

If you have any suggestion I’ll try to implement if possible.

]]>

LLXperiment: most launched apps

LLXperiment: most launched apps

This script is something I made some weeks ago, and I’ve been testing it myself since then. It seems to work, but unfortunately I don’t use it too much to fully test it…and it crash the launcher if you do a specify thing 😛 (don’t worry, it’s a specific and predictable thing)

So, instead of leave it in the list of scripts I never published I’m going to share it as a beta LLXperiment. Yea, that will be better.

The script is specially designed for those who use the app drawer a lot.

What the script does: it creates a panel in the app drawer with the most launched (clicked) apps from the app drawer.

More details: when you click an app from the app drawer (or from a folder from the app drawer) a copy of the app will be placed in the panel (If there is not one). That list is sorted by the most used one, based on a very simple algorithm that seems to work.

Even more details: each app has an internal value from 2 to 0,5. Each time you click an app its value is raised a bit, and all the other apps decrease a bit. Those ‘multiplier’ values are in the script, and I plan to tune then from your suggestions.

How to use it: first run the script from the app drawer, and the panel and all the necessary events will be set. You can run again to reinstall or to uninstall.

If you want to remove an app from the panel run the script from the item.

IMPORTANT!!!!!!

If you try to enter edit mode in the panel, the launcher will crash.

It will also crash when using the search app feature of the app drawer.

Also make a backup before, just in case. (I never had any issues, even when it crash, but just in case)

]]>

Animation bugs Pierre Hébert​

Animation bugs Pierre Hébert​

If you set an offset parameter in the animate function, the interpolator one is not used, always “ad” (default)

for example:

animate(“$name”,500,”bo”,500) return the one with “ad” instead of “bo”

[This is not strictly a bug, but could be with ‘pixel perfect’ animations]

When a animation ends, the final value does not necessarily matches the real one, the difference is from the order 1e-5 , but it is a difference. Could it be done so that when the animation finish the value is set to the real one?

]]>