Timer delay....

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

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: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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
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/
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

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

www.360imagery.co.uk/draft/travelodge
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 am

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

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 208 times
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
stalwart
Posts: 651
Joined: Thu Oct 02, 2008 11:52 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: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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
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/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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 191 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/
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

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: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
User avatar
Hopki
Gnome
Posts: 13004
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

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
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