Adding a text hint to the thumbnail list?

  • Hi,

    I was trying to add a hint to the thumbnails which are created by vtour. What I did is simply find the piece of code which seemed right and add a line:
    set(plugin[get(thumbname)].onhover,showtext(get(linkedscene), buttonstyle););


    This modification gives me the scenename. Now I want to have a proper title instead, but using "get(linkedscene.title), buttonstyle);" is not working. How can I achieve this?

    Any help very much appreciated,

    Michael

  • Hi,

    when look the whole "buildthumbs" code you see the "linkedscene" is a copied attribute that contains the scene name:

    Code
    set(plugin[get(thumbname)].linkedscene, get(scene[get(i)].name) );

    so add a "title" attribute to the <scene> and add code something like that:

    Code
    set(plugin[get(thumbname)].scenetitle, get(scene[get(i)].title) );

    then the thumb plugin has a "scenetitle" attribute with the title of the <scene>,
    and to show it do:

    Code
    set(plugin[get(thumbname)].onhover,showtext(get(scenetitle), buttonstyle););

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!