March, 2014
now browsing by month
tag in a script
item.setTag()
LL.setScriptTag()
a little delicate method name difference.
At first, I thought two methods do the same feature like persistent data storing, but one to a item, the other to global(?) LL.
API doc says,
setScriptTag (String tag)
Set a persistent tag data for the currently executing script.
does “currently executing script” have special meaning? ie, other scripts can’t see that LL tag? I thought LL is global object. However API seems to say this a global just to an script?
And both item tag and LL tag can have persitent data after reloading LL app, right?
]]>www.pierrox.net/android/applications/lightning_launcher/script/reference/…
Pierre Hébert your server is down, please restore it.
Probably is there anyone who has script API document zip?
]]>Blah blah blah why the new HTC One will/won’t be the best phone ever, blah blah blah better or worse than the Galaxy…
Originally shared by JR Raphael
Blah blah blah why the new HTC One will/won’t be the best phone ever, blah blah blah better or worse than the Galaxy S5, blah blah blah everything vs. the iPhone 6, blah blah blah blah blah blah blaaaah.
It’s amazing how much “analysis” can be generated about phones that no one’s actually used in the real world yet.
]]>About the size bug I posted in another post.
Steps: do them in order:
Take an item with ScaleX=1 (I tried with a newly created one)
Open the geometry menu, go to the scale section.
Set ScaleX to 1000 –> scale set to 1000
Set ScaleX to 1 –> scale set to 1
Set ScaleX to 1001 –> scale set to 1001
Set ScaleX to 1 –> scale stay in 1001
From my observations, the rule is:
When setting a new scale (from the menu or from script)
If the new scale is less that the previous divided by 1000, it is not applied.
Another example: set it to 1234
You can set it to 2, but not 1.
You can set it to 1.235 but not 1.234
Pierre Hébert…are you sure you didn’t make this?
Oh, it work in the stable and in the latest beta.
]]>Scope
I’m making Window7 mocking template for uploading Play Store. Mine uses several scripts.
Questions:
1.
If a user already used self.foo variable in his scripts, and my template does too, then two self.foo variables interferes?
2.
How about script name?
(I could create a script with same name)
So if I want to distribute a temple with scripts, then should I myself consider something like specific name prefix?
]]>https://app.box.com/s/0wyy94qs6mtaatds5r9v
The two bugs in the above export are probably connected, since they happened pretty much simultaneously:
1: Changing normal widget background actually changed the image for selected and focused as well. This doesn’t happen every time, but I’ve seen it more than once. The last time it happened,
2: Panel (dock) disappeared from view, though not from the item hierarchy, after #1: occurred.
Panel shows up in the desktop item hierarchy, and the item menu is accessible still. After “move out of panel” is clicked, the shortcut lands in the upper left corner of the desktop, the way its supposed to.
EDIT: 2014MAR23 18:05 PDT
The llx export linked above is derived from +Chris Chastain’s TopTab apk. (I had an idea, wasn’t sure I knew exactly how to do it from scratch, so, like any good programmer, I stole something :-). He still has the apk shared at https://app.box.com/s/oxgtxnpa79tax96snpsx.
It uses a dock-like row of 5 pinned shortcuts with top to bottom and bottom to top stop scroll, stop drag, barrier stop points. I unpinned the shortcuts, put them into a panel, leaving the stop points in place surrounding the panel, so that I could slide the dock items to the left and right, so that the dock is no longer limited to the 5 in the original. I was able to use the dock this way off and on for days, Beyond the addition of shortcuts, there were absolutely no changes made to the dock panel.
Then I changed the background of the little clock widget at the top of the screen. The background change didn’t work right (#1:) and immediately afterward, the dock, which had been happily bouncing up and down at the bottom of the screen until then, disappeared from view.
]]>Question about panels:
I created a zooper widget outside a panel, then moved it into the panel.
Once it was in the panel, I tried to resize it, but it didn’t snap to the grid.
Is that a bug, a feature, or have I just missed a setting somewhere for the panel?
]]>