Can someone please help. This may be simple but i just don't see the solution.
I have an item on my skin which is a image that allows the user to select the area they want to view.
This image is only available to mobile units. It is also hidden until called for by pressing the button.
So I placed a button on the skin to show when screen size goes below a size and it shows.
The problem is that I can get the button allow the image to be seen but I can not get it to hide the image again.
Action on button
Mouse click, Show element, %container_mobile
Mouse click, Hide element, %container_mobile
Mouse click, Toggle element, %container_mobile
SO what am I missing?
Buttons
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Mark,
Bit confusing this, looks like you have one button that has all three actions!
Mouse click, Show element, %container_mobile
Why are you using % in the element ID?
Anyway if you have an action to open the image, how is the user to close it?
Tap on the image or a close button or click the same button to close it, so togging.
Regards,
Hopki
Bit confusing this, looks like you have one button that has all three actions!
Mouse click, Show element, %container_mobile
Why are you using % in the element ID?
Anyway if you have an action to open the image, how is the user to close it?
Tap on the image or a close button or click the same button to close it, so togging.
Regards,
Hopki
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/
I found a post that someone placed that was having similar problems. In that post it said to add the%.
Yes the same button will open and close the image.
Yes the same button will open and close the image.
If it looks impossible you just have not found the right angle to view it from.
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Can you link to that post?
Regards,
Hopki
Regards,
Hopki
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/
Lol now that was a task and a half! I have looked through so much information for this issue.
The link is viewtopic.php?t=1688
The link is viewtopic.php?t=1688
If it looks impossible you just have not found the right angle to view it from.
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Ahhh right this was to address multiple hotspots.
In Pano2VR 5 you would use "#", but I do believe % also still works.
So you needed to manually add the # in front of the target element.
In Pano2VR 6 if you select a hotspot template or similar element that clones then you get a yellow triangle.
On hover it says to address multiple elements you need to use a regular expression, on click it adds a "#".
However when the next node loads the hotspots will show agin.
This is because hotspot get repainted on each node.
In V5 and V6 you would use a variable to hide until you wanted to see them again regardless of changing nodes.
Add a variable called for example ht_hide, true/false set to false.
Im working with the logic that the variable is called Hotspot Hide (ht_hide) so a value of false is not hiding it.
Then set in the hotspot template and under the visible logic block variable: ht_hide, =, true, visible: false
So now you just need a button that has the action:
Mouse Click, Set Variable Value, ht_hide, Not(¬).
This will toggle the true/false
The hotspot will remain hidden even when changing nodes and will only show when the button is clicked.
Regards,
Hopki
In Pano2VR 5 you would use "#", but I do believe % also still works.
So you needed to manually add the # in front of the target element.
In Pano2VR 6 if you select a hotspot template or similar element that clones then you get a yellow triangle.
On hover it says to address multiple elements you need to use a regular expression, on click it adds a "#".
However when the next node loads the hotspots will show agin.
This is because hotspot get repainted on each node.
In V5 and V6 you would use a variable to hide until you wanted to see them again regardless of changing nodes.
Add a variable called for example ht_hide, true/false set to false.
Im working with the logic that the variable is called Hotspot Hide (ht_hide) so a value of false is not hiding it.
Then set in the hotspot template and under the visible logic block variable: ht_hide, =, true, visible: false
So now you just need a button that has the action:
Mouse Click, Set Variable Value, ht_hide, Not(¬).
This will toggle the true/false
The hotspot will remain hidden even when changing nodes and will only show when the button is clicked.
Regards,
Hopki
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/
Sorry I think I have confused the issue.
I need to hide an image. The image is a map I have made.
The button will open and close the map in mobile devices as it does not show for larger screen sizes.
I need to hide an image. The image is a map I have made.
The button will open and close the map in mobile devices as it does not show for larger screen sizes.
If it looks impossible you just have not found the right angle to view it from.
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Mark,
A toggle visibility action should work.
Or you could use variable, say, vis_map, true/false, false.
Then use a button with Mouse Click, Set Variable Value, vis_map, Not(¬).
This will toggle the variable.
So for the map you can now set either Visible or Alpha logic block.
Regards,
Hopki
A toggle visibility action should work.
Or you could use variable, say, vis_map, true/false, false.
Then use a button with Mouse Click, Set Variable Value, vis_map, Not(¬).
This will toggle the variable.
So for the map you can now set either Visible or Alpha logic block.
Regards,
Hopki
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/
Hi Martin,
Thank you for the response but I seem to be having a few issues and not understanding for some reason.
I did try both ways and I could not get either to work unfortunately. Then again I may be missing something a larger part of the puzzle.
Attached a pic of the buttons actions.
Thank you for the response but I seem to be having a few issues and not understanding for some reason.
I did try both ways and I could not get either to work unfortunately. Then again I may be missing something a larger part of the puzzle.
Attached a pic of the buttons actions.
- Attachments
-
- button actions.PNG (12.69 KiB) Viewed 3173 times
If it looks impossible you just have not found the right angle to view it from.
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi Mark,
As said in my first post if you have one button that has all these actions in then they will conflict and it will not work.
You either want to toggle the elements visibility.
Or you have one button that shows it and then one button that hides it.
Regards,
Hopki
As said in my first post if you have one button that has all these actions in then they will conflict and it will not work.
You either want to toggle the elements visibility.
Or you have one button that shows it and then one button that hides it.
Regards,
Hopki
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/
- 360Texas
- Moderator
- Posts: 3684
- Joined: Sat Sep 09, 2006 6:06 pm
- Location: Fort Worth, Texas USA
- Contact:
I think the Mouse click and toggle ALONE performs by definition function like default is 'hide or show'. Toggle action is like like a light switch.
Adding mouse click show and hide elements actions again are only duplication of 'toggle element' and may introduce conflicting results
Adding mouse click show and hide elements actions again are only duplication of 'toggle element' and may introduce conflicting results
Hi guys
Thank you for all the help. It turns out that I had a glitch in the program. I built out a new skin and guess what the button worked first time. Can not find anything different on the first skin I built which is very strange.
So now job complete with over 60 nodes and works well.
Thank you for all the help. It turns out that I had a glitch in the program. I built out a new skin and guess what the button worked first time. Can not find anything different on the first skin I built which is very strange.
So now job complete with over 60 nodes and works well.
If it looks impossible you just have not found the right angle to view it from.