Page 1 of 1

Tooltips on menu

PostPosted: Wed Aug 22, 2012 2:01 am
by AH360
How to display tooltips on menu buttons?

PostPosted: Wed Aug 22, 2012 7:26 am
by bdd
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: Select all
    <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: Select all
    <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/view/Creating_your_own_theme_templates

Gérald

PostPosted: Fri Aug 24, 2012 11:45 am
by AH360
Thanks Gérald!

Works fine here!