====== Differences ====== This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
script_holes [2014/04/21 13:51] trianguloy |
script_holes [2018/08/14 16:58] (current) f43nd1r fix link |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| * Purpose : This is a script that will move a panel to the opposite of the desktop, to give the illusion that it is a hole. | * Purpose : This is a script that will move a panel to the opposite of the desktop, to give the illusion that it is a hole. | ||
| * 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/1DAw2dHB34e (With video) | + | * Link: https://plus.google.com/+TrianguloY/posts/1DAw2dHB34e (With video) |
| ====== How to use the script ====== | ====== How to use the script ====== | ||
| Line 22: | Line 22: | ||
| ====== Script code ====== | ====== Script code ====== | ||
| - | <code> | + | <sxh javascript> |
| //Vars | //Vars | ||
| var desk =LL.getEvent().getContainer(); | var desk =LL.getEvent().getContainer(); | ||
| Line 50: | Line 50: | ||
| pan.setPosition( posX*scale , posY*scale ,1/scale,false); | pan.setPosition( posX*scale , posY*scale ,1/scale,false); | ||
| } | } | ||
| - | </code> | + | </sxh> |