Page 1 of 1

Checks for visited hotspots

Posted: Wed Nov 08, 2023 1:39 pm
by PZechel
Hello, How can you create a hotspot that, when clicked on, checks that you have visited it? Many greetings, Peter.

Re: Checks for visited hotspots

Posted: Wed Nov 08, 2023 2:43 pm
by Hopki
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,

Re: Checks for visited hotspots

Posted: Wed Nov 08, 2023 4:55 pm
by dePassage66
Wahou ! very useful your example, thanks a lot ;-)

Regards, Jean-Paul.

Re: Checks for visited hotspots

Posted: Thu Nov 09, 2023 3:01 pm
by PZechel
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

Re: Checks for visited hotspots

Posted: Thu Nov 09, 2023 3:21 pm
by Hopki
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,

Re: Checks for visited hotspots

Posted: Tue Nov 14, 2023 9:49 am
by PZechel
Hello Hopki, thank you very much, that is exactly what I need, best regards, Peter