Timer delay....

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
User avatar
stalwart
Posts: 618
Joined: Thu Oct 02, 2008 11:52 am

Timer delay....

Post by stalwart » Thu Mar 08, 2018 2:08 pm

Can I have a text annotations that, when called via mouse click, stays visible for only a predetermined time - I.e. auto closes after say 5 secs?

User avatar
Hopki
Gnome
Posts: 9138
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Timer delay....

Post by Hopki » Thu Mar 08, 2018 3:28 pm

Hi Stu,
Can you tell me more about this.
Is the text box already showing so when clicked hides after 5 seconds.
Or is it hidden and on a mouse click on a button shows for 5 seconds then hides?
Regards,
Hopki

User avatar
stalwart
Posts: 618
Joined: Thu Oct 02, 2008 11:52 am

Re: Timer delay....

Post by stalwart » Sat Mar 10, 2018 1:08 pm

I need a 5-second delay on "mouse leave" on these HS:

www.360imagery.co.uk/draft/travelodge

User avatar
stalwart
Posts: 618
Joined: Thu Oct 02, 2008 11:52 am

Re: Timer delay....

Post by stalwart » Tue Mar 13, 2018 12:21 pm

*bump*

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

Re: Timer delay....

Post by Tony » Tue Mar 13, 2018 9:09 pm

Hi Stu,

I've attached a component that has 3 elements; button, info box and timer. When the mouse enters the button the action toggles the visibility on the info box and it displays, when the mouse leaves the button the action sets a value for the timer (in this example 3 seconds). The timer has a deactivation action that toggles the visibility of the info box.

Is this what you are after?

Tony
Attachments
Mouse Leave Timer Delay.ggskc
(5.53 KiB) Downloaded 29 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/

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

Re: Timer delay....

Post by Tony » Wed Mar 14, 2018 5:53 am

Hey Hopki,

When I put that component into a Hotspot it doesn't seem to work. Any chance you could take a look and point me in the right direction?

Project files etc in the zip.

cheers,

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/

User avatar
stalwart
Posts: 618
Joined: Thu Oct 02, 2008 11:52 am

Re: Timer delay....

Post by stalwart » Wed Mar 14, 2018 11:09 am

Tony wrote:
Tue Mar 13, 2018 9:09 pm
Hi Stu,

I've attached a component that has 3 elements; button, info box and timer. When the mouse enters the button the action toggles the visibility on the info box and it displays, when the mouse leaves the button the action sets a value for the timer (in this example 3 seconds). The timer has a deactivation action that toggles the visibility of the info box.

Is this what you are after?

Tony
Hi Tony,

with a bit of hacking, I got it to work a treat - thanks!

http://www.360imagery.co.uk/draft/travelodge_v.2/

Stu

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

Re: Timer delay....

Post by Tony » Wed Mar 14, 2018 12:26 pm

with a bit of hacking, I got it to work a treat - thanks!
That's great Stu, care to share your hack?

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/

User avatar
Hopki
Gnome
Posts: 9138
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Timer delay....

Post by Hopki » Wed Mar 14, 2018 12:50 pm

Hi Tony,
Looking at the skin this is what I have done/change.
The Hotspot Template has the action:

Code: Select all

Mouse Over, Set Value, 3, timer
The Timer (timer) has the actions:

Code: Select all

Activate, Show Element, #info-block

Code: Select all

Deactivate, Hide Element, #info-block
Note, # is required to address special elements such as hotspot templates as there can be more then one in the output so the # is required to address them all.

The hotspot image has no actions
The info-block has no actions

When the mouse is over the hotspot it is always setting 3 to the timer, so while the mouse is over the hotspot the timer is active.
When the mouse leaves the hotspot the timer then can count down, so active for the 3 seconds then once at 0 it is deactivated and the info-block can hide.
Cheers,
Hopki

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

Re: Timer delay....

Post by Tony » Wed Mar 14, 2018 1:19 pm

Hi Hopki,

Can't get it to work, what settings do you have for the timer?

Mine are; Timeout - 3.000 seconds, Type - Loaded, Repeat - One Time

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/

User avatar
Hopki
Gnome
Posts: 9138
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Timer delay....

Post by Hopki » Wed Mar 14, 2018 1:39 pm

Hi Tony,
The timer I set to 0 seconds and init.
Project attached.
Made with V6 but also works with V5.
Cheers,
Hopki
Attachments
tony.zip
(12.49 KiB) Downloaded 28 times

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

Re: Timer delay....

Post by Tony » Wed Mar 14, 2018 1:46 pm

Hi Hopki,

Thanks for that. I had the timer inside the Hotspot template. Once I moved it outside and applied your timer settings it works as expected.

cheers,

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/

User avatar
Hopki
Gnome
Posts: 9138
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Timer delay....

Post by Hopki » Wed Mar 14, 2018 2:02 pm

Further to this, in V6 we have added a new "manual" type to teh timer, this means the timer is neither active or de-active.
So in this state the timer can be set to time 3 seconds and manual.
Then for example have the actions:
Activate, Show Element, splash_screen
Deactivate, Hide Element, splash_screen

You can then set the splash screen to visible and have the action when clicked to set the value to 3 seconds to the timer.
What this will produce is you will see the splash screen on open, when you click the splash screen it will hide after the 3 seconds.

The reason you will see the splash screen is because the timer is in manual type so the Deactivate, Hide Element, splash_screen action will not do anything until the timer has had the set value action to start it.

In V5 this would not work as the action Deactivate, Hide Element, splash_screen would work on open so it would hide the splash screen.
Regards,
Hopki

Post Reply

Who is online

Users browsing this forum: xi4 and 3 guests