Map and margins project from the What's new in Pano2VR 7.1 webinar

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
Hopki
Gnome
Posts: 13032
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Please find attached a project built for the What's New in Pano2VR 7.1 webinar.
The project uses the new Change Margins action along with the new Player Mouse Click action.

The end result is when you open the map it slides in from the right along with the margin sliding in from the right as well, this means the map does not cover any part of the panorama, instead the panorama is resized to fit in the margin.

The Player Mouse Click source action allows the map to be closed by simply clicking in the panorama.
The cool thing about this is you can click and drag the panorama and click on skin elements which will not trigger the action, only a direct click in the panorama without any mouse movement will trigger the Player Mouse Click action.


How it works.
The skin has a Variable, vis_margin which is type true/false set to false.
This is used in an action filter so only the required actions are triggered with each click.

All the actions are in the element button_map.

1.png
1.png (130.42 KiB) Viewed 698 times

Using an action filter in all the highlighted actions will be triggered on the first click.
• change the margin width with a 0.5 second transition by 250px from the right
• Change the map elements position with a 0.5 transition by -250px so it slides from the right
• Toggle the variable to true

• After the first click this will allow the Player Mouse Click action to trigger click "self" to close the open map with clicking in the panorama.

The next click will trigger all the actions highlighted in the next image due to the variable which is now true.
Note the Player Mouse Click action has been included in the screen shot below as this is showing all the actions that can be triggered when the variabel is true.

2.png
2.png (134.45 KiB) Viewed 698 times

• change margin back to 0
• change the map element back to its starting position
• Toggle the variable back to false

The Player Mouse Click action uses the action filter so it can only be used to close the map.
If you removed the action filter you could then click in the panorama to open the map as well as close it.
Regards,
Attachments
map_margins.zip
(58.08 KiB) Downloaded 28 times
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/
Post Reply