![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
Good day!
Help if any knows, please.
I want to create an intro where logo was moved from center to the top left corner. How to change align by tween from "center" to "lefttop" or how to know the coordinates of the windows center?
I don't want to set the constant numeric values, because I don't want that the logo was disappeared after windows resizing.
Last edited by Ukrajinec (2012-11-30 09:08:09)
Offline
Hi Igor.. .
You can use this code in your main xml file.. You also need to create a folder named logo and a logo named logo.png..
Destiny...
<!--************** Destiny Logo moves from centre to top left *****************************************************************-->
<plugin name="logo" url="virtualtourdata/logo/logo.png" keep="true" align="center" x="0" y="0" width="249" height="40" handcursor="false" onloaded="showlogospot();" onclick="closelogo"/>
<action name="showlogospot">
</action>
<action name="hidelogospot">
</action>
<action name="closelogo">
hidemapspot();
set(plugin[logo].onclick,openlogo);
set(plugin[logo].width, 249);
set(plugin[logo].height, 40);
set(plugin[logo].align, lefttop);
set(plugin[logo].x , 10);
set(plugin[logo].y , 10);
</action>
<action name="openlogo">
set(plugin[logo].onclick, closelogo);
tween(plugin[logo].height, 40, 0.5, easeoutquad);
tween(plugin[logo].width , 249, 0.5, easeoutquad, showmapspot()
;
set(plugin[logo].align, center);
set(plugin[logo].x , 0);
set(plugin[logo].y , 0);
</action>
<action name="unselectmapspotsbutpassed">
</action>
<action name="selectlogospot">
unselectmapspotsbutpassed(%1);
if(plugin[%1].animated,
inc(plugin[%1].animationCounter, 1);
if(plugin[%1].animationCounter == 1,
animatemapspot(%1, 0.1);
);
,
inc(plugin[%1].blingCounter,1);
if(plugin[%1].blingCounter == 1,
blinglogospot(%1);
);
);
</action>
<action name="blinglogospot">
tween(plugin[%1].alpha, 0.0, 0.8, easeInSine );
tween(plugin[%1].scale, 1.5, 0.8, easeOutCubic);
tween(, , 0.8, , resetmapspot(%1);
if(plugin[%1].blingCounter > 0, blingmapspot(%1)![]()
;
</action>
<action name="reset;logospot">
set(plugin[%1].scale,1);
set(plugin[%1].alpha,1);
</action>
Online
Thanks, Destiny!
Looks a little hard to understand but I'll try. ![]()
Offline
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
