Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

|
|
Quellcode |
1 2 3 4 |
set(a, $b); tween(a, &dest, &time); loadpano(#pano1); lookto(get(hotspot[h1].ath), get(hotspot[h1].atv), 50); |

|
|
Quellcode |
1 |
set(plugin[spotx].x,plugin[spot1].x); |
|
|
Quellcode |
1 |
set(plugin[spotx].x,get(plugin[spot1].x)); |
|
|
Quellcode |
1 |
set(plugin[spotx].x,plugin[spot1].x); |


|
|
Quellcode |
1 |
set(plugin[spotx].x,plugin[spot1].x); |
|
|
Quellcode |
1 |
showtext(This is a comma test, I hope it works) |
I know, but I'm not sure if there such situations exists at all...
Zitat
but there might be some situations where you cannot decide how to parse the xml

Well... there could be if you have some variable name and you actually want to send a string equal to the variable name. I know these are rare cases and can be easily avoided, but they can happen.I know, but I'm not sure if there such situations exists at all...
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<action name="load_generic">
push(plugin[ms_%1].x);
push(plugin[ms_%1].x);
pop(plugin[spotx].x);
pop(plugin[radar].x);
push(plugin[ms_%1].y);
push(plugin[ms_%1].y);
pop(plugin[spotx].y);
pop(plugin[radar].y);
loadpano(panos/%1.xml,null,MERGE,BLEND(2));
set(plugin[radar].heading,%2);
</action>
|
|
|
Quellcode |
1 |
action(load_generic, entrance1, 0); |
|
|
Quellcode |
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 29 30 |
<action name="moveto_facility">
action(startloading);
looktohotspot(hs_facility, 10);
action(load_generic, facility, 0);
lookat(-123.43,5.24,10);
wait(blend);
oninterrupt(action(lookinterrupt));
lookto(-123.43,5.24,60,smooth(50,50,50));
action(loadingdone);
</action>
<action name="load_generic">
action(update_map, %1, %2);
loadpano(panos/%1.xml,null,MERGE,BLEND(2));
</action>
<!-- This action updates the location of the spotx and radar -->
<action name="update_map">
push(plugin[ms_%1].x);
pop(plugin[spotx].x);
push(plugin[ms_%1].y);
pop(plugin[spotx].y);
push(plugin[ms_%1].x);
pop(plugin[radar].x);
push(plugin[ms_%1].y);
pop(plugin[radar].y);
set(plugin[radar].heading,%2);
</action>
|
|
|
Quellcode |
1 2 |
when you put "action(update_map, %1, %2)" in load_generic it doesn't work? and when you remove it, it worked? |
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
<action name="update_map">
push(plugin[ms_%1].x);
pop(plugin[spotx].x);
push(plugin[ms_%1].y);
<!--
pop(plugin[spotx].y);
push(plugin[ms_%1].x);
pop(plugin[radar].x);
push(plugin[ms_%1].y);
pop(plugin[radar].y);
-->
set(plugin[radar].heading,%2);
</action>
|
|
|
Quellcode |
1 2 3 4 5 6 |
<plugin name="ms_entrance1"
x="130" y="195"
onhover="showtext(Entrance);"
onclick="action(load_generic, entrance1, 0);"
keep="true"
url="mappoint.png" zorder="2" align="righttop" edge="center"/>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 |
<plugin name="map" url="ea_map.png" zorder="1" align="righttop" edge="righttop"
x="16" y="16" alpha="0.7"
handcursor="true"
keep="true"
width="739"
height="258"
onhover="showtext(Close Map,smalltext);"
onclick="action(closemap);"
/>
|
|
|
Quellcode |
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
<action name="load1"> set(plugin[spotx].x,293); set(plugin[spotx].y,87); set(plugin[radar].x,293); set(plugin[radar].y,87); loadpano(1.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,10); </action> − <action name="load2"> set(plugin[spotx].x,165); set(plugin[spotx].y,71); set(plugin[radar].x,165); set(plugin[radar].y,71); loadpano(2.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,2); </action> − <action name="load3"> set(plugin[spotx].x,135); set(plugin[spotx].y,73); set(plugin[radar].x,135); set(plugin[radar].y,73); loadpano(3.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,180); </action> − <action name="load4"> set(plugin[spotx].x,96); set(plugin[spotx].y,101); set(plugin[radar].x,96); set(plugin[radar].y,101); set(radar.heading,270); loadpano(4.xml,null,KEEPALL,BLEND(2)); set(plugin[radar].heading,98); </action> |
|
|
Quellcode |
1 |
onclick="action(load_generic, entrance1, 0, 130, 195);" |