|
|
Quellcode |
1 2 3 |
<plugin name="gyro" url="../../gyro.js" enabled="true" camroll="true" friction="0.5" velastic="0.2" devices="html5" keep="true"
onloaded="delayedcall(1,ifnot(available, showgyrowarning()));"
/>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<plugin name="gyro" url="gyro.js" enabled="false" camroll="true" friction="0.5" velastic="0.2" devices="html5" keep="true" />
<plugin name="gyro-button" style="gyrobutton" devices="iphone|ipad" align="righttop" x="30" y="30" width="120" html="[p]Gyro on[/p]" onclick="switch(plugin[gyro].enabled); set(view.camroll,0.0); if(plugin[gyro].enabled == false, set(html,[p]Gyro on[/p]), set(html,[p]Gyro off[/p]));"/> />
<style name="gyrobutton"
url="plugins/textfield.swf"
keep="true"
children="false"
height="22"
onloaded="set(alpha,0); set(textblur,15); set(blur,15); tween(alpha,1.0,0.3); tween(textblur,0,0.3); tween(blur,0,0.3);"
onover="tween(alpha,0.7,distance(0.3,0.2));"
onout="tween(alpha,1.0,distance(0.3,0.2));"
autosize="none"
css="p{color:#FFFFFF; font-family:Arial; font-size:14; margin-left:5; margin-right:5; text-align:center; }"
background="true" backgroundcolor="0x000000" backgroundalpha="0.7"
bordercolor="0" borderwidth="0"
blur="0"
glow="4"
glowcolor="16777215"
roundedge="5"
shadow="1"
textblur="0" textglow="0" textglowcolor="16777215" textshadow="0"
/>
|
|
|
Quellcode |
1 2 3 4 5 6 7 |
<plugin name="gyro" ... onloaded="delayedcall(1,if(available, set(plugin[gyro-button].visible,true); ));" /> <plugin name="gyro-button" ... visible="false" /> |
|
|
Quellcode |
1 |
onloaded="delayedcall(1,if(available, set(plugin[gyro-button].visible,true); ));"/> |
|
|
Quellcode |
1 |
onloaded="delayedcall(1,if(available, set(plugin[gyro-button].visible,true); set(autorotate.enabled,false); ));"/> |