You are not logged in.

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


#1 2012-08-22 03:01:20

AH360
Member
From: Brazil | Londrina
Registered: 2012-06-25
Posts: 15
Website

Tooltips on menu

How to display tooltips on menu buttons?

Offline

 

#2 2012-08-22 08:26:13

bdd
Administrator
Registered: 2011-01-18
Posts: 622
Website

Re: Tooltips on menu

Hello,

1 - Click on the menu "Edit/Open templates directory"
2 - Open the sub-directory "menu"
3 - Copy the menu XML file you want to use. For example copy the menu "navigation-fullscreen.xml" into "navigation-fullscreen-tooltips.xml"
4 - Edit the new file, and change the "captions" at the beginning of the files

Code:

    <translation>
        <caption lang="fr" text="Navigation + Plein écran + Tooltips"/>
        <caption lang="en" text="Navigation + FullScreen + Tooltips"/>
        <caption lang="de" text="Navigation + Vollbild + Tooltips"/>
    </translation>

5 - For each "plugin" XML node, add a "onhover" attribute
  For example on the "right" plugin :

Code:

    <plugin name="right" 
            url="$(STYLEDIR)/btn_right.png"   
            width="40"
            height="prop" 
            customColor="true" 
            keep="true" 
            align="bottom"
            x="-20"    
            y="$(MARGIN)" 
            ondown="set(hlookat_moveforce,+1);" 
            onup="set(hlookat_moveforce,0);"
            crop="0|0|$(MENU_RESOURCE_WIDTH)|$(MENU_RESOURCE_WIDTH)" 
            onovercrop="0|$(MENU_RESOURCE_WIDTH)|$(MENU_RESOURCE_WIDTH)|$(MENU_RESOURCE_WIDTH)" 
            onhover="showtext(My tooltip text for the right button)"
            onover=""
            onout=""
    />

6 - save this new modified file
7 - go outside the "menu" directory and step into the "themes" sub-directory
8 - Edit the themes XML files you are using in your tours
9 - Find the line containing the menu XML files you copied. In our case "navigation-fullscreen.xml"
10 - Copy this line, or the full XML node if you copied a menu with help screen
11 - Change the "file" attribute on the XML line, with your new menu file name
12 - Re-start Panotour Pro, your new menu should appear

If you want more information on how to customize menus, you should take a look at the following tutorial :
http://www.autopano.net/wiki-en/action/ … _templates

Gérald

Offline

 

#3 2012-08-24 12:45:21

AH360
Member
From: Brazil | Londrina
Registered: 2012-06-25
Posts: 15
Website

Re: Tooltips on menu

Thanks Gérald!

Works fine here!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson