[SOLVED] Is there a way to show the title name over a hotspot in the GArrows plug-in?

  • Hello, I am currently using the GArrows plugin and I want to display the title name above the hotspots. However, I have not been able to figure out how to do this for a long time. Today, I happened to come across a VR implementation that does exactly what I want.

    https://explorewithtera.com/ExpoWMC?startscene=scene__DSC4972_Banquet

    Does anyone know how to do this?

    I asked the developer of the GArrows plugin via email, but I couldn't find a solution. If anyone knows how to do this, I would appreciate it if you could let me know the method.

  • 1. <include url="%SWFPATH%/plugins/showtext.xml" />

    create your own style and name it "popup_text"

    2. Add title to hotspot: <hotspot name="spot1" style="skin_hotspotstyle_navigate" ... title=" TEXT " />

    3. in the file arrows.xml action name="addchevrons_pc" insert the code:

    calc(layer[connections].connection[get(j)].onhover, (hs.title?'showtext('+ hs.title + ', popup_text);' : '') );

    before the code inc(j);

  • Where can I get showtext.xml? I have arrows.xml. Below is my code. What should I modify here?
    Also, I checked the arrows.xml file I have, and it appears to be encrypted.

    RealPano *smile*

    Telegram : onair0410

    I am not good at English, so I use a translator.

    Edited once, last by onair0410 (May 16, 2024 at 2:34 PM).

  • when creating a tour, the showtext.xml plugin is located in the panos folder

    and is in the folder krpano-1.21.2/templates/xml/plugins/showtext.xml


    ... look in the file garrows.xml

    It turns out it was a default file in krpano :) However, both the arrows.xml file and the garrows.xml file I have are encrypted. So, I can't find the part with action name="addchevrons_pc". *confused*

  • With the latest version, edit garrows_settings.xml to be something like below (note onover/onout/onover.mouse/onout.mouse), have your skin_tooptip style to be whatever you require:

  • Oh, thank you so much. Thanks to you, I've solved it.
    Below is the modified code. If anyone needs it, please modify it to fit your own style.
    However, I'm not very skilled at coding, so the code might be messy. Also, I still have an unresolved issue: I want the tooltip to be positioned about 10px above the y-axis, but I'm struggling with that.
    I'm not sure how to handle automatic line breaks when the tooltip gets longer.


    When there is no tooltip,

    RealPano *smile*

    Telegram : onair0410

    I am not good at English, so I use a translator.

    Edited once, last by onair0410 (May 16, 2024 at 7:24 PM).

  • onair0410 May 17, 2024 at 11:15 AM

    Changed the title of the thread from “Is there a way to show the title name over a hotspot in the GArrows plug-in?” to “[SOLVED] Is there a way to show the title name over a hotspot in the GArrows plug-in?”.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!