|
|
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 |
<!-- Map --> <plugin name="map" url="../../img/map-large-notext-rotated.png" visible="false" align="center" scale="0.5" zorder="6" /> <!-- Map background --> <plugin name="map-bg" url="%SWFPATH%/plugins/textfield.swf" html="" visible="false" align="center" zorder="1" height="556" width="549" backgroundcolor="0x000000" roundedge="5" shadow="1" borderwidth="0" glow="4" alpha="0.5" scale="0.5" /> |
|
|
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 |
<!-- Top button - Show Map -->
<plugin name="map-off"
url="../img/button-2-map.png"
visible="true"
zorder="2"
alpha="0.8"
blendmode="normal"
origin="righttop"
x="70"
y="4"
height="62"
width="62"
handcursor="true"
onclick="action(togglemap);" />
<plugin name="map-on"
url="../img/button-2-map-on.png"
visible="false"
zorder="2"
alpha="0.8"
blendmode="normal"
origin="righttop"
x="70"
y="4"
height="62"
width="62"
handcursor="true"
onclick="action(togglemap);" />
|
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<action name="togglemap">
set(dontshow, false);
if( plugin[map].visible == true,
set(plugin[map].visible, false);
set(plugin[map-off].visible, true);
set(plugin[map-on].visible, false);
set(plugin[map-bg].visible, false);
set(autorotate.enabled,true);
set(dontshow, true)
);
if( dontshow == false,
set(plugin[map].visible, true);
set(plugin[map-off].visible, false);
set(plugin[map-on].visible, true);
set(plugin[map-bg].visible, true);
set(autorotate.enabled,false);
);
</action>
|
This post has been edited 1 times, last edit by "pan-o-rama" (Sep 1st 2010, 7:09pm)
|
|
Source code |
1 2 3 4 |
<events
onenterfullscreen="set(plugin[map].scale, 1.0);set(plugin[map-bg].scale, 1.0);"
onexitfullscreen="set(plugin[map].scale, 0.5);set(plugin[map-bg].scale, 0.5);"
/>
|
I think you can set the width and height values to % values, in which case you shouldn't even need to do anything else. Please let me know if you can't, because my project will require this when I get to the plugin coding part and it's best to avoid nasty surprises![]()
Location: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.comLocation: Netherlands
Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.combut when you have a krpano RESIZE event in your plugin, you should be able to use the krpano positioning system...That's what I'm doing right now and it's working, it's just too bad there isn't a function call from the interface that would reposition the plugin allowing me to make use of the built-in positioning system in changing plugins!