Page 1 of 1

Timer delay....

Posted: Thu Mar 08, 2018 2:08 pm
by stalwart
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?

Re: Timer delay....

Posted: Thu Mar 08, 2018 3:28 pm
by Hopki
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

Re: Timer delay....

Posted: Sat Mar 10, 2018 1:08 pm
by stalwart
I need a 5-second delay on "mouse leave" on these HS:

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

Re: Timer delay....

Posted: Tue Mar 13, 2018 12:21 pm
by stalwart
*bump*

Re: Timer delay....

Posted: Tue Mar 13, 2018 9:09 pm
by Tony
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 5:53 am
by Tony
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 11:09 am
by stalwart
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 12:26 pm
by Tony
with a bit of hacking, I got it to work a treat - thanks!
That's great Stu, care to share your hack?

Tony

Re: Timer delay....

Posted: Wed Mar 14, 2018 12:50 pm
by Hopki
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 1:19 pm
by Tony
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 1:39 pm
by Hopki
Hi Tony,
The timer I set to 0 seconds and init.
Project attached.
Made with V6 but also works with V5.
Cheers,
Hopki

Re: Timer delay....

Posted: Wed Mar 14, 2018 1:46 pm
by Tony
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

Re: Timer delay....

Posted: Wed Mar 14, 2018 2:02 pm
by Hopki
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