Damn, I uploaded 4 videos and only the first one is shown in the post.

Damn, I uploaded 4 videos and only the first one is shown in the post. Here are the others, incl one “near-real-life-sample”:

https://plus.google.com/photos/106201536507820539535/albums/6111768607528079185

Originally shared by Lutz Linke

Swap Cards-Script with Accordion- or Stack-Effect – Version 3

I was busy and added some requested (and non-requested) features.

Alpha Fading : Cards removed/added can be faded out/in (var cardFadeOut=true;)

Faded lower cards : Cards not in focus can be alpha faded (var cardAlphaLower=128;)

Variable Overlap : Overlap (the shows part in proportion of row height/column width) can be adjusted (var cardOverlapSize=1.0;)

External Triggers : Triggers can be placed outside of the panels, i.e. on desktop or in a different panel. Panels can reside on desktop or inside another container (var cardContainerName=”pnlStack”;). Name is used to match card (i.e. “btnCard01” >> “pnlCard01”)

Swipe Gestures : Swipe gestures on desktop and items (i.e shortcuts) can be used to trigger swap up/down the stack (set name “prefix{NEXT}” or “prefix{NEXT}”)

– “Cards” must not be panels, but can also be items, i.e. shortcuts

– Fixed bugs in AnimateItems script

Wrapper : a “wrapper” script can be used to change any parameters of the original script without need to change it

Reverse direction for Stack : cards on the lower half will by default be pushed to top in reverse order (“pulled from bottom”) automatically, but direction can be set fixed to “U”p or “D”own (i.e var cardFixedDirection=”U”;);

– *Fixed Orientation” : if automatic detection of horizontal or vertical stack fails, the orientation can be fixed (i.e var cardFixedOrientation=”H”;)

Example for wrapper script:

  var param={};

  param.cardPanelPrefix=”pnlMyCard”;

  param.cardTriggerPrefix=”btnMyCard”;

  param.cardContainerName=”pnlMyStack”;

  var evt=LL.getEvent()

  param.evtSource=evt.getSource();

  var evtItem=evt.getItem();

  if(evtItem!=null) {

    param.evtItemId=evtItem.getId();

  }

  LL.runScript(“Cards_SwapAccordion”,JSON.stringify(param));”,”flags”:0,”id”:1}

(Cards prefixed with “pnlMyCard” will be searched in panel named “pnlMyStack” (fallback to desktop if not found) and buttons prefixed with “btnMyCard” will be recognized as triggers.)

See the videos, I also added an example how to use non-panel items (her: headers as “do nothing”-shortcuts) as secondary stack.

Template (download and place ZIP in /sdcard/LightningLauncher) and scripts can be downloaded from here: https://app.box.com/LLCardSwapDemo

Reference post: http://goo.gl/3vvFKz

]]>

6 Commentsto Damn, I uploaded 4 videos and only the first one is shown in the post.

  1. Anonymous says:

    < ![CDATA[

    Totally awesome.

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Keepemcoming…

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Damn, I uploaded 4 videos and only the first one is shown in the post. Here are the others, incl one “near-real-life-sample”:


    https://plus.google.com/photos/106201536507820539535/albums/6111768607528079185

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Amazing

    ]]>

  5. Anonymous says:

    < ![CDATA[

    It`s just amazing! It really reveals potential of LL. Lutz Linke,  Pierre Hébert,  thank you

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Excellent. This will be great on my media centre device.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *