User Data switching the icon off and on

Q&A about the latest versions
Post Reply
michael63
Posts: 59
Joined: Sat May 30, 2020 2:58 pm

Created an tour where the i information button was permanent on
$(ui) = user data information
The user clicked on i icon and look at the information, so far so good.
Have been asked to add a lot more panoramic pictures which a lot do not have user information.
How to stop the user clicking the i icon when no users when no is available.
I’m aware that I could put the i icon on just the panoramic that had information, but the project didn’t start off that way.
Have got better with the skin editor overtime I thought I should be able to make the switch the icon off and on
$(ui) no user data make the icon invisible ( OFF )
$(ui) when users date is available visible ( ON )
Tried a few different things, nothing is working (maybe it can’t be done) any suggestions would be helpful
Michael
Attachments
II.jpg
II.jpg (64.68 KiB) Viewed 6203 times
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
You can use an Action Filter that says only allow the click if the user data is not blank.

Screenshot 2022-10-06 at 22.28.42.png
Screenshot 2022-10-06 at 22.28.42.png (95.77 KiB) Viewed 6199 times

You can even use an Alpha Logic Block to dim the button using a similar trigger but this time if the user data is blank set Alpha to 0.5.
Regards,
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/
michael63
Posts: 59
Joined: Sat May 30, 2020 2:58 pm

Thank you Hopki for pointing me in the right direction.
Michael
Post Reply