|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<!-- Map -->
<plugin name="map"
url="../img/map-large-notext-rotated.png"
visible="true"
align="bottomleft"
y="114"
x="10"
width="100"
height="100"
keep="true"
handcursor="false"
scalechildren="true"
zorder="6"
onclick="[I DON'T KNOW]"
/>
|
|
|
Source code |
1 |
onclick="tween(plugin[map].height, sub(get(stageheight), 10));" |
|
|
Source code |
1 2 3 4 5 6 7 8 9 |
<action name="drawer_open"> sub(destheight,stageheight, 112); <!-- variable destheight calculated and stored here for later use --> set(area.x, 0, 0.3); set(area.y, 0, 0.3); tween(area.width, 100%, 0.3); tween(area.height, get(destheight), 0.3); </action> |
This post has been edited 2 times, last edit by "zadda" (Sep 22nd 2010, 8:42pm)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<action name="drawer_open"> sub(destheight,stageheight, 112); <!-- variable destheight calculated and stored here for later use --> div(divisor,stageheight,100); div(destheight,divisor); roundval(destheight, 1); txtadd(destheight,get(destheight),'%'); set(area.x, 0); set(area.y, 0); tween(area.width, 100%, 0.3); tween(area.height, get(destheight), 0.3); </action> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<events onenterfullscreen="action(drawer_openfs);"
onexitfullscreen="action(drawer_closefs);"
/>
<action name="drawer_openfs">
sub(destheight,stageheight, 112); <!-- variable destheight calculated and stored here for later use -->
div(divisor,stageheight,100);
div(destheight,divisor);
roundval(destheight, 1);
txtadd(destheight,get(destheight),'%');
set(area.x, 0, 0.3);
set(area.y, 0, 0.3);
set(area.width, 100%, 0.3);
set(area.height, get(destheight));
</action>
<action name="drawer_closefs">
set(area.x, 0, 0.2);
set(area.y, 0, 0.2);
set(area.width, 100%);
set(area.height, 100%);
</action>
|
Quoted
don't know yet the conditional statement in krpano.....
Quoted from "releasenotes.txt"
krpano.com - krpano Flash Panorama Viewer (1.0.8.11) - RELEASE NOTES
=============================================================================
1.0.8.11
........
- if/ifnot(condition, trueaction, falseaction) action
- condition:
- varA
- only one variable as parameter
- this variable will be compared against "true"
- varA OPERATOR varB
- compare two variables
- the below for all possible operators
- trueaction - actions that will be called on true
- falseaction - actions that will be called on false
- usage examples:
if(fullscreen, action(fullscreen_setup), action(windowmode_setup) );
if(view.vlookat GE 45, set(view.vlookat, 45) );
if(plugin[xyz].visible == true, set(plugin[xyz].visible,false) );
- supported if operators:
- "==" - equal
- "!=" - not equal
- "<" - lower than
- "<" - greater than
- "<=" - lower or equal than
- ">=" - greater or equal than
- "===" - strict equal (compare only existent variables)
- "!==" - strict not equal (compare only existent variables)
- because of the XML limitation of the usage of the '<' and '>' characters
also these operators are supported:
- "GT" - greater than,
- "LT" - lower than
- "LE" - lower or equal
- "GE" - greater or equal
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<!-- if(drawer, drawer_open()); ---- means: if the variable drawer is true then call the drawer_open() action --> <events onresize="if(drawer, drawer_open());" onenterfullscreen="if(drawer, drawer_open());" onexitfullscreen="if(drawer, drawer_open());" /> <action name="drawer_open"> set(drawer,true); sub(destheight,stageheight, 112); <!-- variable destheight calculated and stored here for later use --> div(divisor,stageheight,100); div(destheight,divisor); roundval(destheight, 1); txtadd(destheight,get(destheight),'%'); set(area.x, 0, 0.3); set(area.y, 0, 0.3); set(area.width, 100%, 0.3); set(area.height, get(destheight)); </action> <action name="drawer_close"> set(drawer,false); set(area.x, 0, 0.2); set(area.y, 0, 0.2); set(area.width, 100%); set(area.height, 100%); </action> |