Countdown Timer
Posted: Tue Aug 03, 2021 4:50 pm
We spotted someone asking about a countdown timer and thought it would make a good component.
To add to Pano2VR download the component and double click to add to Pano2VR.
You will be asked to select a category, the default is User Defined.
To add to a skin, open the components toolbox and double-click the component.
Once added to your skin the Skin Configuration button will be active.
Use this to set the target date and time
Please note the format needed to make this work is Month Day, Year Hours:Minutes:Seconds entered in the format in the above example.
How to use, in the skin there is a true/false variable with the ID dateReached.
This is set to false until the timer reaches 0 then turns to true.
The variable can be used with Logic Blocks, Action Filters, and with a Variable Changed Action to trigger events such as Open Next Panorama, or play media, anything you can do with a variable.
The component is made up of a container with the ID _code_countdown.
This contains the code to make this work.
There is also a text box with the ID display_text_box.
This displays the count down.
The component also adds other text variables for the Day, Hours, Minutes, and Seconds.
These are text variables that are used to display the values in the display_text_box.
Displaying the countdown in this way means you can edit the way the countdown can be displayed.
To add to Pano2VR download the component and double click to add to Pano2VR.
You will be asked to select a category, the default is User Defined.
To add to a skin, open the components toolbox and double-click the component.
Once added to your skin the Skin Configuration button will be active.
Use this to set the target date and time
Please note the format needed to make this work is Month Day, Year Hours:Minutes:Seconds entered in the format in the above example.
How to use, in the skin there is a true/false variable with the ID dateReached.
This is set to false until the timer reaches 0 then turns to true.
The variable can be used with Logic Blocks, Action Filters, and with a Variable Changed Action to trigger events such as Open Next Panorama, or play media, anything you can do with a variable.
The component is made up of a container with the ID _code_countdown.
This contains the code to make this work.
There is also a text box with the ID display_text_box.
This displays the count down.
The component also adds other text variables for the Day, Hours, Minutes, and Seconds.
These are text variables that are used to display the values in the display_text_box.
Displaying the countdown in this way means you can edit the way the countdown can be displayed.