How to show different icons after mouse click

Q&A about the latest versions
Post Reply
duceduc
Posts: 43
Joined: Sun Dec 11, 2016 5:39 pm

I have this weird issue where after clicking on a location tour link from the popup box, the icon(up arrow) that opens the popup box needs to be double click. Before clicking on any links, the icon works fine with just one click. The text in the popup box are just text with action 'open next panorama'.
Also, I would like to have a down arrow icon shown right after clicking on the up arrow and vis-versus.
sample link
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi duceduc,

Could you post your skin?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
duceduc
Posts: 43
Joined: Sun Dec 11, 2016 5:39 pm

Thanks Tony for the look see.
Attachments
sakura-viewing.ggsk
(47.58 KiB) Downloaded 174 times
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Thanks for posting the skin. Here is a working version that I think is what you are after...

https://s3-ap-southeast-2.amazonaws.com ... index.html

The double click issue was happening because;

1. The mouse click to open the group was using the 'Toggle' action. So effectively it would simply undo what was set on the first click and set the group back to its original position.
2. The mouse click on the panorama title was 'Change Relative Position' resetting the group back to its original position
3. This meant that when you clicked on the 'Toggle' action nothing happened because it was resetting the group back to its original position not knowing it was already there. Once you'd clicked once it then worked properly.

Rather than setting the action directly to the group I've created a variable, 'mainMenuGrpStatus' that is either True or False. So when you click on the arrows the Mouse Click uses the 'Set Variable Value' to Not(⌝) - the opposite of what it currently is. The mainMenuGrp element has a 'Position' logic block the changes the position of the element based on the Value True or False.

Using the same variable the up and down arrow have visible logic blocks that show or hide themselves.

I've attached the updated skin. You will have to redo the links to the nodes.

cheers,

Tony
Attachments
sakura-viewing.ggsk
(47.58 KiB) Downloaded 158 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
duceduc
Posts: 43
Joined: Sun Dec 11, 2016 5:39 pm

Thank you again Tony for your help. Made some alignment adjustments to your edits. Lots to learn.
Post Reply