I'm working on a virtual tour using an interface designed by an Agency. I'm in the V5 learning curve at the moment and i've run into an issue using variables and logic blocks. I'm seeing an issue and I'm not sure if I'm approaching the functionality in the correct way or not and I'm having some trouble tracing the error.
Here's the scenario;
- On the opening screen is a panel containing 6 boxes. Each box links to panoramas of related content.
- When the user clicks on one of the boxes the panel closes, if they re-open the panel the clicked box/es show an overly indicating that they have already viewed that group of related content.
- There is a 'reset' button that sets all of the box overlays to 'visibilty = false"
http://tonyredhead.photography/p2vr/forum/logic-test/
How it should work;
- Click on Box #1 - Panel disappears, Panorama 1 opens, Multi-colored button appears at bottom.
- Select Multi-colored button returns the viewer to the initial screen and Box #1 features the 'Viewed' overlay.
- Click on Box #2 - Panel disappears, Panorama 2 opens, Multi-colored button appears at bottom.
- Click on Multi-colored button to return the to the initial screen and Box #1 & 2 feature the 'Viewed' overlay. Note: Clicking on a box already viewed will take you back to that view
- Click on the reset button (blue button top left) and the 'Viewed' panels disappear
All good and that's what I want to happen. Now, without refreshing the screen, if the viewer only clicks on one panel, views the panorama and then returns to the main screen the overlay isn't displayed.
- Click on Box #1 - Panel disappears, Panorama 1 opens, Multi-colored button appears at bottom.
- Click on Multi-colored button to return the to the initial screen
- No overlay is showing?
- If you were then to click on Box #2, view panorama and then return to the main screen Box #2 would show the overlay but Box #1 doesn't.
There is a variable set in the skin with an initial value = 0
Each Box has an action that sets the overlay to 'Show Element'
Each overlay has a Logic Block with the trigger 'reset_menu' that sets a value of 1 = Visible: false
The 'Reset' button has an action on Mouse Click that sets the variable to 1 and the target to reset_menu
Here's a link to a YouTube video showing the issue
https://youtu.be/XI71aEs65g8
and here are the project/skin files
http://tonyredhead.photography/P2VR/For ... 20Test.zip [2.2mb]
Any help, tips and signs to the right direction I should head in gratefully accepted.
Cheers,
Tony