====== Differences ====== This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
script_wheel_of_items [2014/04/30 11:02] trianguloy |
script_wheel_of_items [2018/08/14 16:56] (current) f43nd1r fix link |
||
---|---|---|---|
Line 2: | Line 2: | ||
* Purpose : This is a customizable wheel of items. | * Purpose : This is a customizable wheel of items. | ||
* Author : [[https://plus.google.com/u/1/105066926163073195690|TrianguloY]] | * Author : [[https://plus.google.com/u/1/105066926163073195690|TrianguloY]] | ||
- | * Link: https://plus.google.com/u/1/105066926163073195690/posts/dMG96rAsFt6 (With video) | + | * Link: https://plus.google.com/+TrianguloY/posts/dMG96rAsFt6 (With video) |
+ | * [[http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_wheel_of_items#modifications|Modification]] | ||
====== How to use the script ====== | ====== How to use the script ====== | ||
Line 21: | Line 21: | ||
This script will use all the items in the container, that's why I recommend to use a panel. | This script will use all the items in the container, that's why I recommend to use a panel. | ||
- | [[http://www.pierrox.net/android/applications/lightning_launcher/wiki/doku.php?id=script_wheel_of_items#modifications|Modification]] | ||
====== Script code ====== | ====== Script code ====== | ||
- | <code> | + | <sxh javascript> |
/*Config: */ | /*Config: */ | ||
var h = 0; //horizontal alignment (-1 , 0 , 1 ) | var h = 0; //horizontal alignment (-1 , 0 , 1 ) | ||
Line 69: | Line 68: | ||
} | } | ||
- | </code> | + | </sxh> |
====== Modifications ====== | ====== Modifications ====== | ||
* Ready-to-use and possibility of having different settings in different containers. No need to set up settings! Follow all other instructions with the code below | * Ready-to-use and possibility of having different settings in different containers. No need to set up settings! Follow all other instructions with the code below | ||
- | by LM13 alias Lukas Morawietz | + | by [[http://www.google.com/+LukasMorawietz|F43nd1r]] |
=== modified script === | === modified script === | ||
- | <code>var event = LL.getEvent(); | + | <sxh javascript;> |
+ | var event = LL.getEvent(); | ||
var desktop = event.getContainer(); | var desktop = event.getContainer(); | ||
var data=JSON.parse(desktop.getTag()||"null"); | var data=JSON.parse(desktop.getTag()||"null"); | ||
Line 117: | Line 117: | ||
t.setRotation(rot); | t.setRotation(rot); | ||
} | } | ||
- | </code> | + | </sxh> |