You are not logged in.

> The forum rules have been updated. Please take a moment to read them.


#1 2012-11-30 08:26:22

Ukrajinec
New member
From: Lvov
Registered: 2012-10-11
Posts: 6

Changing of align

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)


Regards, Igor.

Offline

 

#2 2012-11-30 09:56:50

Destiny
Moderator
From: Australia
Registered: 2010-04-27
Posts: 2417
Website

Re: Changing of align

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()wink;
        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 &gt; 0, blingmapspot(%1)winkwink;
    </action>
    <action name="reset;logospot">
        set(plugin[%1].scale,1);
        set(plugin[%1].alpha,1);
    </action>


Virtual Tours and 3D/360 Object/Product Photographer - Our aim is to create a 3D/360 Virtual Tour Shop/Store with links to 3D/360 degree products. My gear, VR Drive II - D90 - Nikon 10.5 fisheye - Nikon D800 with Nikon-Nikkor 14-24 - NOVOFLEX Magic Balance - Acratech GP Ball-head - Nodal Ninja 4 + RD-16 Rotor - Manfrotto 190CXPRO4 Carbon Fiber Tripod smile smile

Online

 

#3 2012-12-10 09:02:11

Ukrajinec
New member
From: Lvov
Registered: 2012-10-11
Posts: 6

Re: Changing of align

Thanks, Destiny!
Looks a little hard to understand but I'll try. smile


Regards, Igor.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson