|
|
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 |
<krpano version="1.0.8" onstart="action(start);"> <include url="skin/defaultskin.xml" /> <!-- change the default textstyle for showtext: --> <textstyle name="DEFAULT" font="Arial" fontsize="14" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(4,45,0x000000,4,1);" /> <textstyle name="smalltext" font="Arial" fontsize="10" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" /> <textstyle name="infostyle" origin="top" edge="top" yoffset="100" textalign="center" background="false" border="false" fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="6.0" fadetime="1.0" /> <plugin name="map" url="tff_plan.png" keep="true" align="leftbottom" x="-20" y="3" alpha="0.95" handcursor="false" scalechildren="true" width="503" height="500" onclick="action(closemap);" /> <plugin name="arlomap" url="mappoint.png" keep="true" parent="map" align="lefttop" edge="center" x="200" y="83" zorder="2" onhover="showtext(Heidecksburg - Arlo Guthrie);" onclick="loadscene(arlo, null, MERGE, BLEND(1));" /> und 25 weitere gleichartige Mappoints <!-- combobox plugin --> <plugin name="box" url="plugins/combobox.swf" preload="true" keep="true" align="leftbottom" x="20" y="20" width="400" blendmode="layer" /> <action name="start"> <!-- load 1. scene on start --> loadscene(arlo, null, MERGE); plugin[box].addIdItem(1, 'Heidecksburg - Rotfront', loadscene(rotfront, null, KEEPDISPLAY, BLEND(1)); ); + 25 gleichartige Items </action> <!-- activated hotpot --> <plugin name="activespot" url="mappointactive.png" keep="true" align="center" edge="center" visible="false" zorder="3" /> <!-- radar plugin, set heading with "plugin[radar].heading" --> <plugin name="radar" url="plugins/radar.swf" zorder="1" keep="true" heading="0" parent="map" align="lefttop" edge="center" x="0" y="0" linecolor="0" fillcolor="0xFF0000" scale="0.1" visible="false" /> <!-- actions --> <action name="closemap"> set(onclick,action(openmap);); tween(width,64,distance(503,0.5),easeoutquad); tween(height,63,distance(500,0.5),easeoutquad); tween(x,20,distance(200,0.5),easeoutquad); tween(y,40,distance(40,0.5),easeoutquad); wait(); set(onhover,showtext(Karte öffnen);); </action> <action name="openmap"> set(onclick,action(closemap);); tween(width,503,distance(503,0.5),easeoutquad); tween(height,500,distance(500,0.5),easeoutquad); tween(x,-20,distance(100,0.5),easeoutquad); tween(y,3,distance(40,0.5),easeoutquad); set(onhover,null); </action> <!-- activatespot action, - this action has two arguments: - %1 = the current spot - %2 = the current radar heading --> <action name="activatespot"> set(plugin[activespot].parent, plugin[%1]); set(plugin[activespot].visible, true); copy(plugin[radar].x, plugin[%1].x); copy(plugin[radar].y, plugin[%1].y); set(plugin[radar].visible, true); set(plugin[radar].heading, %2); </action> <!-- Szenen --> <!-- first scene/pano --> <scene name="arlo" onstart="action(startscene);"> <action name="startscene"> plugin[box].selectIdItem(2); action(activatespot,arlomap, 180); showtext([b][i]tff2010 - Heidecksburg - Arlo Guthrie & Thüringer Sinfoniker[/i][/b], infostyle); </action> <!-- place here scene local elements like plugins,hotspots, ... --> <include url="../tff2010_heidecksburg2/heidecksburg2_sphere.xml" /> </scene> + weitere 25 gleichartige szenen... |
Dieser Beitrag wurde bereits 3 mal editiert, zuletzt von »henryk86« (21. August 2010, 03:18)
Was ich nicht ganz überblicke bei Deinem Code-Ausschnitt:
Hast Du etwa für jede Szene eine eigene xml-Datei angelegt? Falls ja, dann würdest Du ja den Sinn des scene-tags ad absurdum führen, der ja gerade darin besteht, mehr als nur ein einziges Panorama in eine xml-Datei schreiben zu können.
Eine xml-Datei innerhalb einer Szene zu inkludieren ist in diesem Fall auch nicht sinnvoll, da sie ja erst nach Aufruf der Szene geladen wird.
Inkludiere sie grundsätzlich innerhalb der Basis-xml, dann ist alles da, sobald Du es brauchst.
Das nur mal so als Schnellschuss...![]()
...Das ganze ist aber trotzdem recht blöd, da man so gezwungen ist, die ganze sache in einer XML-Datei zu speichern. Jeder Versuch die Übersicht zu waren, indem man die einzelnen Panos in eigene XML-Dateien auslagert wird dadurch zu tote verurteilt...
... das ist schade. Ich hoffe, dass dieses Problem bei einem der nächsten Releases verbessert wird. (wenns denn geht)