====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
script_animation_cardstyle [2014/07/13 11:13] lm13 [Script] |
script_animation_cardstyle [2014/09/24 16:10] (current) lm13 [About the script] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== About the script ====== | ====== About the script ====== | ||
| - | * Purpose : This scripts will give you a beautiful page transition animation and an optional horizontal page loop | + | * Purpose : This script will give you a beautiful page transition animation and an optional horizontal page loop |
| * Author : [[https://plus.google.com/+LukasMorawietz|LM13]] | * Author : [[https://plus.google.com/+LukasMorawietz|LM13]] | ||
| * Current Version : 1.0 | * Current Version : 1.0 | ||
| - | * Link: | + | * Link: https://plus.google.com/115366157037831519359/posts/GqZBMeMEpLT |
| + | * Download avialable! (Check repository) | ||
| ====== Changelog ====== | ====== Changelog ====== | ||
| - | * Version 1.0 (5/7/2014): initial release in wiki | + | * Version 1.0 (13/7/2014): initial release in wiki |
| Line 20: | Line 21: | ||
| ====== Script ====== | ====== Script ====== | ||
| - | <code>var e=LL.getEvent(); | + | <sxh javascript;>var e=LL.getEvent(); |
| var d=e.getContainer(); | var d=e.getContainer(); | ||
| var dwidth=d.getWidth(); | var dwidth=d.getWidth(); | ||
| Line 139: | Line 140: | ||
| item=items.getAt(i); | item=items.getAt(i); | ||
| var data=JSON.parse(item.getTag()); | var data=JSON.parse(item.getTag()); | ||
| + | if(data!=null) | ||
| + | { | ||
| item.setScale(1,1); | item.setScale(1,1); | ||
| item.setPosition(data.posx,data.posy); | item.setPosition(data.posx,data.posy); | ||
| + | } | ||
| item.getProperties().edit().setInteger("i.alpha",255).commit(); | item.getProperties().edit().setInteger("i.alpha",255).commit(); | ||
| } | } | ||
| } | } | ||
| - | </code> | + | </sxh> |