Appdrawer in any container
Appdrawer in any container
Fix compatibility with latest Lightning versions
https://drive.google.com/open?id=0B40xU-30MxN7TjRwZUtwRF9ac00&authuser=0
]]>
< ![CDATA[
Can you take a video, I don’t know how it work ?
]]>
< ![CDATA[
Ability for vertical scroll?
]]>
< ![CDATA[
Asai Inori vertical and horizontal scroll is possible, depending on the row count you choose.
]]>
< ![CDATA[
Lukas Morawietz You use our own popup menu, or directly menu from LL? Because in selected container (panel) i have english (after long tap to free desktop place or long tap on item) menu, other LL items…
]]>
< ![CDATA[
It’s LL’s menu, but with custom actions and texts. They can’t be translated
]]>
< ![CDATA[
ok
]]>
< ![CDATA[
…unless, wait a sec, I’ll try that.
]]>
< ![CDATA[
Pierre Hébert is there any way to find out in script which language Pack is currently selected?
Edit: have an idea…
]]>
< ![CDATA[
Danbar Danbar I know how to get strings form language pack now, but these Strings aren’t included, because Lightning handles this stuff with different action names…
You can change them manually if you want to.
]]>
< ![CDATA[
maybe Pierre Hébert can help…
or if you tell me what i must doing, i will doing like…
]]>
< ![CDATA[
Danbar Danbar Language packs just don’t contain a string for e.g. ‘hide’, because Lightning uses ‘toggle hidden’
]]>
< ![CDATA[
in before version app drawer (very long time) was used this variable from translate site…
mi_es_show_hidden and mi_es_hide_hidden
]]>
< ![CDATA[
Danbar Danbar These values say ‘Hide hidden’ , not ‘hide’ (which is performed on an item). This is a different action.
]]>
< ![CDATA[
now i see… you need hide, unhide 😉
]]>
< ![CDATA[
Is it possible replace function hide hidden/show hidden in menu for this all/only hidden/only visible (now used in correct app drawer)
]]>
< ![CDATA[
Danbar Danbar
Possible, but not yet implemented. I’m working on another project right now.
]]>
< ![CDATA[
Would it be possible to use this with Lutz Linke material folders? I tried to edit a panel in one of the material folders, it added the icons from the app drawer but screwed up the animation and the coloured bar..😄
]]>
< ![CDATA[
Adam Caine both scripts are using a resumed event, that may interfere. I don’t know.
]]>
< ![CDATA[
Looks like it does Lukas Morawietz..😂 that’s a shame it would be cool to have the app drawer inside one of those folders..
]]>
< ![CDATA[
Give me a few minutes. I’m going to try something…
]]>
< ![CDATA[
Lukas Morawietz I think there is a flaw in your creation script. In Material Folder there is a panel. It should be possible to use this as target for the AppDrawer. Then it should work perfectly in combination. But instead it uses the containing folder.
As a workaround I created a panel on the desktop, initialized this as AppDrawer, gave it (under Misc) the name “content”, removed the panel inside the Material Folder and moved the new panel into the folder. Worked. Had to adjust the styling though. And there is a tiny delay before the folder opens. But that’s okay.
One bug: the panel moved into the folder is above the header. Where can I change the Z-order with the new editor, Pierre Hébert? Or is that functionality missing?
]]>
< ![CDATA[
Okay, found an easier way. Sorry, Lukas Morawietz, for the hack/workaround.
Create a new script in script editor. Name it “AppDrawify” or something. Check “Lightning Menu”. Paste the following code. Open Material Folder. Run script via long tap on panel (upper area). This sets the required tag and wires the resumed event to Lukas’ script. That’s it.
var tag=”appdrawer_lukas”;
var c=LL.getEvent().getContainer();
if(c==null) {
alert(“Run inside panel!”);
return;
}
var data={};
var cProps=c.getProperties();
data.columns=””+cProps.getInteger(“gridPColumnNum”);
data.rows=”0″;
c.setTag(tag,JSON.stringify(data));
var scrMainName = “AppDrawer_main”;
var scrMain = LL.getScriptByName(scrMainName);
var cEd=c.getProperties().edit();
cEd.setEventHandler(“resumed”, EventHandler.RUN_SCRIPT, scrMain.getId());
cEd.commit();
]]>
< ![CDATA[
Wow! Awesome! Thanks a lot Lutz Linke
]]>
< ![CDATA[
Jeff Ludlow Interesting for you, too?
]]>
< ![CDATA[
Lutz Linke very cool Lutz I’ll have to try it out
]]>
< ![CDATA[
Lutz Linke to clarify, long press on the coloured part of the folder? The header? As the script isn’t available by long pressing on the panel (white area) and so this is how it turns out applying the script from the header, no animation and not able to scroll..https://www.dropbox.com/s/f8je8ixs4cv1ut0/Screenshot_2015-04-26-17-55-24.png?dl=0
]]>
< ![CDATA[
Adam Caine That’s how it looks like if applied Lukas’ script on Material Folder, even on the panel. This removed the header items.
But there was a mistake on my post above (corrected by now). Check “Lightning Menu” in script editor not “Item Menu” for the AppDrawify scriptlet in my comment.
Then, step by step:
– paste my scriptlet to a new script “AppDrawify”
– set checkbox “Lightning Menu”
– create a new Material Folder
– open it
– long press in content panel (the white area)
– run “AppDrawify” script
– panel’s resumed event is wired and tag is set
– close and open folder
– app drawer should initialize in the panel, then folder open with effect and your apps in the panel
]]>
< ![CDATA[
Lutz Linke I tried this again as you said, only this time I got this error message https://www.dropbox.com/s/031rln7s1cmzwm7/Screenshot_2015-04-28-23-52-03.png?dl=0 😕 I retried a couple of times, deleting the scripts and installing all apks again, same result..
]]>
< ![CDATA[
Adam Caine The error is in the line containing “scrMain.getId()”. So it looks like there is no script named “AppDrawer_main”. These are installed when you first ran Lukas Morawietz AppDrawerFolder script by loading it from the APK. Can you please check wether the script exists?
If not: create a folder on the desktiop. Open that folder. Run Lukas’ script by long-tap in folder and Scripts >> Load >> AppDrawerFolder. Then the necessary scripts should exist. That temporary folder can now be deleted and my scriptlet should run correctly on the panel inside Material Folder.
Lukas Morawietz Can you please check the bug I mentioned above? I mean my comment: “I think there is a flaw in your creation script. In Material Folder there is a panel. It should be possible to use this as target for the AppDrawer. Then it should work perfectly in combination. But instead it uses the containing folder.”. If this gets fixed, my workaround should no longer be needed. advTHANKSance.
]]>
< ![CDATA[
Lutz Linke I just did that. This is not a bug in my script. It’s a combination of LL and your script. When you load my script from the panel Lightning pauses and resumes instantly -> The folder is closed and opened again -> It becomes the active container -> My script gets it from LL.getEvent().getContainer(). There is no way for me to know if this happened or not, so I can’t even search for a panel first.
]]>
< ![CDATA[
Lukas Morawietz Thanks for the investigation. Though I don’t know why this happens. The script does not open/close the folder. Only resumed event is used. Script reacts on this as follows in the beginning of the script:
if(evtSrc!=”C_RESUMED”) {
return;
}
[..]
if(iFld.isOpen()) {
//iFld.close();
return;
}
Maybe it’s the used resumed event in general that causes the misbehavior.
EDIT: nope, only wiring the event does not cause the problem. Strange. Will investigate.
]]>
< ![CDATA[
Lutz Linke Maybe the folder doesn’t really close, but the animation runs.
I’ve just tried my script on regular panel in a normal folder and it worked.
]]>
< ![CDATA[
Lukas Morawietz I see, the handling of isOpen is not in the APK version of the script. Was only on my local version. Will change that and see if it solves the problem. Later.
]]>
< ![CDATA[
Lukas Morawietz Tried something really simple. Added a folder, added a panel to that folder. Set “resumed” event of the folder to a blank script. The error occurs. Code does not matter.
The focus changes as you said after loading the script from the container you try to use to the folder because of the event handler. Without handler it works as expected.
Pierre Hébert, is this a bug that can be solved technically?
As for now, using my workaround scriptlet above seems the only way.
]]>
< ![CDATA[
Hello Lukas Morawietz !
I have a problem with this script : When I launch it in any container, after I’ve choose my settings he say :”Enjoy your new appdrawer” but nothing is happening.
I have try to uninstall but I have the same problem.
If you know how resolve it…
Thank you. ☺
]]>