Checks for visited hotspots
- Hopki
- Gnome
- Posts: 13088
- 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,
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 366 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/
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/
- dePassage66
- Posts: 86
- Joined: Mon Mar 20, 2023 11:19 am
Wahou ! very useful your example, thanks a lot
Regards, Jean-Paul.
Regards, Jean-Paul.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
(sorry, no translation available yet!)
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
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 364 times
- Hopki
- Gnome
- Posts: 13088
- 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,
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 377 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/
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/