Tooltips on menu  

Share your tips and tricks here or get help with any Panotour problem!
No bug reports (of any kind) in this forum!
User avatar
AH360
Member
 
Topic author
Posts: 19
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 25, 2012 11:17 am
Location: Brazil | Londrina
Info

Tooltips on menu

by AH360 » Wed Aug 22, 2012 2:01 am

How to display tooltips on menu buttons?

User avatar
bdd
Kolor Team
 
Posts: 2802
Likes: 14 posts
Liked in: 130 posts
Joined: Tue Jan 18, 2011 4:05 pm
Info

by bdd » Wed Aug 22, 2012 7:26 am

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

User avatar
AH360
Member
 
Topic author
Posts: 19
Likes: 0 post
Liked in: 0 post
Joined: Mon Jun 25, 2012 11:17 am
Location: Brazil | Londrina
Info

by AH360 » Fri Aug 24, 2012 11:45 am

Thanks Gérald!

Works fine here!


Who is online

Users browsing this forum: No registered users and 0 guests

cron