Hi there,
Interesting, I figured that out out a few days ago :)
Here you are:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
...
<scene name="scene01_DAY" title="01_DAY" onstart="" thumburl="panos/01_DAY.tiles/thumb.jpg" lat="" lng="" heading=""> <control bouncinglimits="calc:image.cube ? true : false" />
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/01_DAY.tiles/preview.jpg" />
<image>
<cube url="panos/01_DAY.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2560" />
</image>
<plugin onclick="loadscene(scene01_NIGHT, null, MERGE|KEEPVIEW, BLEND(1));" onhover="showtext(Day/Night);" name="daynight" url="%SWFPATH%/skin/switch2night.svg" align="topright" x="20" y="20" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" />
</scene>
<scene name="scene01_NIGHT" title="01_NIGHT" onstart="" thumburl="panos/01_NIGHT.tiles/thumb.jpg" lat="" lng="" heading="">
<control bouncinglimits="calc:image.cube ? true : false" />
<view hlookat="0.0" vlookat="0.0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto" />
<preview url="panos/01_NIGHT.tiles/preview.jpg" />
<image>
<cube url="panos/01_NIGHT.tiles/%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,640,1280,2560" />
</image>
<plugin onclick="loadscene(scene01_DAY, null, MERGE|KEEPVIEW, BLEND(1));" onhover="showtext(Day/Night);" name="daynight" url="%SWFPATH%/skin/switch2day.svg" align="topright" x="20" y="20" altonloaded="if(isphone, mul(x,2); mul(y,2); mul(scale,2));" />
</scene>
...
|
The interesting stuff for you is the plugin-part in the scene -i have a slightly different setup for the day and the night switch here -
mainly to use different icons which i have placed absolutely in the top right corner.
As soon as the project is finished, i will post a link here.
Best regards and hope it helps,
mtness