August, 2015

now browsing by month

 

Testing the best generic default for QuickTheme for Lighting Launcher.

Testing the best generic default for QuickTheme for Lighting Launcher.

Originally shared by Jappie Toutenhoofd

Hi, I want to use LL.getDesktopByName in one of my scripts, but I can’t find anywhere in the settings to pick a name…

Hi, I want to use LL.getDesktopByName in one of my scripts, but I can’t find anywhere in the settings to pick a name for a desktop… Am I missing something obvious?

Thanks

Hi TrianguloY​

Hi TrianguloY​

Could you help me there : i’ve filled a new variable with 0/1 named Block

I want to run a. Script for quick unlock when 0

if($Block == 0){

/* OK for quick unlock*/

/* unlock if locked*/

if(LL.isLocked()){

LL.unlock();

}

}

Seems my ii is not correct, tried with $LL_Block, with ‘ ‘

Is there some ‘Read Variable’ to be done ?

]]>

Hi all

Hi all

I need some help

I have a variable named Block which is true or false (set by double finger swipe : up = true, down = false

Trying to display an icon only if true so I’ve set a Bindings.

TrianguloY​ Lukas Morawietz​

]]>

Just a quick question

Just a quick question

Can scenes and transitions be used in LL?

EDIT: transitions works by using the rootView of a single item, what about scenes instead?

]]>

Hi all, this is a question for the more experienced script programmers.

Hi all, this is a question for the more experienced script programmers. I was looking at ways to optimize my code and I found that it would be handy if I could assign custom fields to item objects, because then I would be able to store calculated values on the item and if be able to use them in functions to which I would only have to pass the item as argument and not also the calculated value. Actually I wouldn’t even have to pass the items as an argument to the functions because I could make the function run on the item.

After some searching I found this: http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript

I implemented this in a small example script:

dummy = LL.getCurrentDesktop().addShortcut(“dummy”,new Intent(),0,0);

// OLD WAY

/*

function displayCenter(it, center){

it.setLabel(center[0]+”,”+center[1]);

}

function moveToCenter(it, center){

it.setPosition(center[0], center[1]);

}

function center(item){

var r=item.getRotation()*Math.PI/180;

var sin=Math.abs(Math.sin(r));

var cos=Math.abs(Math.cos(r));

var w=item.getWidth()*item.getScaleX();

var h=item.getHeight()*item.getScaleY();

return[item.getPositionX()+(w*cos+h*sin)*0.5,item.getPositionY()+(h*cos+w*sin)*0.5];

}

var center = center(dummy);

displayCenter(dummy, center);

moveToCenter(dummy, center);

*/

//NEW WAY:

myItem = function(){

this.getCenter = function(){

if(this.center==null){

alert(“test”)

var r=this.getRotation()*Math.PI/180;

var sin=Math.abs(Math.sin(r));

var cos=Math.abs(Math.cos(r));

var w=this.getWidth()*this.getScaleX();

var h=this.getHeight()*this.getScaleY();

var center = [this.getPositionX()+(w*cos+h*sin)*0.5,this.getPositionY()+(h*cos+w*sin)*0.5]

this.center = center;

}

return this.center;

};

this.displayCenter = function(){

this.setLabel(this.getCenter()[0]+”, “+this.getCenter()[1]);

};

this.moveToCenter = function(){

this.setPosition(this.getCenter()[0], this.getCenter()[1]);

};

};

myItem.prototype = dummy;

myDummy = new myItem();

myDummy.displayCenter();

myDummy.moveToCenter();

myDummy.setSize(288, myDummy.getHeight()) //ALSO STILL WORKS BOTH WORK ON SAME OBJECT DESPITE THAT I DIDN’T DEFINE A getPositionX() IN myItem 😀

As you can see this enables me to do what I explained herebove, but I haven’t seen anyone do it before, so I am wondering if there is anything bad happening here or I actually found something cool and useful.

Please tell me what you think in the comments.

Thanks for reading 🙂

cdfa

http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript
]]>

Hi all, this is a question for the more experienced users: I was looking at ways to optimize my code and I found…

Hi all, this is a question for the more experienced users: I was looking at ways to optimize my code and I found that I would be handy if I could assign custom fields to item objects, but LL doesn’t allow me to. The I found this: http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript

I implemented this in a small example script:

dummy = LL.getCurrentDesktop().addShortcut(“dummy”,new Intent(),0,0);

myItem = function(){

this.getCenter = function(){

var r=this.getRotation()*Math.PI/180;

var sin=Math.abs(Math.sin(r));

var cos=Math.abs(Math.cos(r));

var w=this.getWidth()*this.getScaleX();

var h=this.getHeight()*this.getScaleY();

return[this.getPositionX()+(w*cos+h*sin)*0.5,this.getPositionY()+(h*cos+w*sin)*0.5];

};

};

myItem.prototype = dummy;

myDummy = new myItem();

alert(myDummy.getCenter()[0])

alert(myDummy.getPositionX()) // BOTH WORK ON SAME OBJECT AND DIDN’T DEFINE A getPositionX() IN myItem 😀

I never seen anyone use this, so I was wondering if there is anything that makes this very inefficient or I actually discovered something pretty cool.

Thanks for reading 🙂

Colin

http://stackoverflow.com/questions/1646698/what-is-the-new-keyword-in-javascript
]]>

I redid it in stock colors

Originally shared by Abimael

I redid it in stock colors

Dark Google Now Theme – stock colors

Lightning Launcher eXtreme

LLeX template

https://drive.google.com/file/d/0B90YhDz04dJFd3c4aXZMaXdCTWc/view?usp=docslist_api

Zooper Widget Pro

Media Utilities

Simple RSS Widget

I just uploaded Version 2.3.1 of my Appdrawer script, which brings full support for masked icon packs.

I just uploaded Version 2.3.1 of my Appdrawer script, which brings full support for masked icon packs. However I can’t test it with all the icon packs and the implementation isn’t as straightforward as one might think either.

So, if you have 10 Minutes for me, do the following:

1. Install (or update) the app https://play.google.com/store/apps/details?id=com.faendir.lightning_launcher.appdrawer

2. Choose any Icon pack and select it in the List (If it’s not in the List, directly jump to 6.)

3. Create a new Desktop (or other container)

4. Load the Appdrawer script inside the container

5. Check if the icons look as they should

6. Report your result (positive or negative) to me (here or wherever you want)

Please add a Link to the pack used in case of a negative result.

]]>

All

All,

Sorry to be so quiet! I am taking a break and I’ll be back in September only.

Until then I am afraid I will remain mostly offline, don’t expect to hear from me, although I may be around during the next days 🙁

Regarding the beta, I would have liked to publish it as stable before, but I am not sure it is good enough (I don’t even remember what was its status exactly, I am fully disconnected from my computer, lol!). As a consequence it will probably have to wait for a few more weeks before to reach the stable channel.

Thanks for your patience!

]]>