Checks for visited hotspots

Q&A about the latest versions
Post Reply
PZechel
Posts: 12
Joined: Mon Apr 25, 2022 10:29 am

Hello, How can you create a hotspot that, when clicked on, checks that you have visited it? Many greetings, Peter.
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Please see the attached project.
It uses User Data Custom Properties.
One custom property has been added called Visited, this is a true/false property that will add a true/false variable to the skin when opened.
The logic is visited false show the text box.

In the skin is the text_box which has a visible logic block, *visited_state = true, visible false.
There is also a Hotspot Template with a hotspot image, ht_node_icon. This has the actions to Set the variable value, visited_state to true and Open the next panorama using the Point Hotspot URL and target text fields.

The text box also has the action that when clicked sets the variable to true. This enables the text box to be closed when clicked.

When you open the project you see the text box, it also uses placeholders to use the node's user data title and description text.
You may click the text box to close it, or just navigate away and back,

The Hotspot Temples variable action sets that node's custom property to true before you open the next node, so on return the variable is true and the text box will not show.
Regards,
Attachments
project.zip
(36.13 KiB) Downloaded 289 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Wahou ! very useful your example, thanks a lot ;-)

Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
PZechel
Posts: 12
Joined: Mon Apr 25, 2022 10:29 am

Hello Hopki, thank you very much for the answer.
But I meant this:
If you click on the “ht_Foto” hotspot and close the photo again, a check mark should appear above it.
This is to indicate that you have already seen the picture.
Similar to the “ht_Flächenfoto” hotspot:
Here is an example with the hotspot “ht_Foto” without a checkmark.

Best regards, Peter
Attachments
Example.zip
(2.91 MiB) Downloaded 286 times
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Add a Hotspot Custom property, in the attached project I called it Foto Visit.
This creates a true/false variable in the skin called foto_visit, set to false.

The checkmark on the Hotspot Image has a visible logic block that shows with foto_visit = true just for that one Hotspot.
The Hotspot Template has an additional action that sets the variable to true on click.

So if you have many Point Hotspots that show different images, you will only get the checkmark on the ones viewed.
Regards,
Attachments
project.zip
(1.24 MiB) Downloaded 277 times
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
PZechel
Posts: 12
Joined: Mon Apr 25, 2022 10:29 am

Hello Hopki, thank you very much, that is exactly what I need, best regards, Peter
Post Reply