Page 1 of 1

How to show different icons after mouse click

Posted: Fri Apr 12, 2019 1:25 pm
by duceduc
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

Re: How to show different icons after mouse click

Posted: Sat Apr 13, 2019 2:25 pm
by Tony
Hi duceduc,

Could you post your skin?

Tony

Re: How to show different icons after mouse click

Posted: Sun Apr 14, 2019 11:09 pm
by duceduc
Thanks Tony for the look see.

Re: How to show different icons after mouse click

Posted: Mon Apr 15, 2019 3:54 am
by Tony
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

Re: How to show different icons after mouse click

Posted: Mon Apr 15, 2019 2:12 pm
by duceduc
Thank you again Tony for your help. Made some alignment adjustments to your edits. Lots to learn.