How to show different icons after mouse click

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

How to show different icons after mouse click

Post by duceduc » Fri Apr 12, 2019 1:25 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: 702
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: How to show different icons after mouse click

Post by Tony » Sat Apr 13, 2019 2:25 pm

Hi duceduc,

Could you post your skin?

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

duceduc
Posts: 30
Joined: Sun Dec 11, 2016 5:39 pm

Re: How to show different icons after mouse click

Post by duceduc » Sun Apr 14, 2019 11:09 pm

Thanks Tony for the look see.
Attachments
sakura-viewing.ggsk
(47.58 KiB) Downloaded 9 times

User avatar
Tony
Posts: 702
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Re: How to show different icons after mouse click

Post by Tony » Mon Apr 15, 2019 3:54 am

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 7 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: http://tonyredhead.com - http://redsquare.com | roundme: http://round.me/@tonyredhead | instagram: https://www.instagram.com/tonyredhead/

duceduc
Posts: 30
Joined: Sun Dec 11, 2016 5:39 pm

Re: How to show different icons after mouse click

Post by duceduc » Mon Apr 15, 2019 2:12 pm

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 14 guests