Beispiel #1
0
        public override void Start()
        {
            var tp = new TimeProvider();

            time = tp.WorldTime;
            // Initialization of the script.
        }
Beispiel #2
0
        public override void Start()
        {
            var tp = new TimeProvider();

            time            = tp.WorldTime;
            page            = Entity.Get <UIComponent>().Page;
            border          = page.RootElement.FindVisualChildOfType <Border>(BlockName);
            ClockDisplay    = border.FindVisualChildOfType <TextBlock>("TimeBlock");
            DateDisplay     = border.FindVisualChildOfType <TextBlock>("DateBlock");
            TitleBlock      = border.FindVisualChildOfType <TextBlock>("Title");
            TitleBlock.Text = Title;

            // Initialization of the script.
        }
Beispiel #3
0
        public override void Start()
        {
            var tp = new TimeProvider();

            time            = tp.WorldTime;
            page            = Entity.Get <UIComponent>().Page;
            border          = page.RootElement.FindVisualChildOfType <Border>(BlockName);
            ClockDisplay    = border.FindVisualChildOfType <TextBlock>("TimeBlock");
            BlurbDisplay    = border.FindVisualChildOfType <TextBlock>("BlurbBlock");
            TitleBlock      = border.FindVisualChildOfType <TextBlock>("Title");
            currentRotation = CameraGimble.Transform.Rotation;
            timer           = -1;
            LoadSites();
            // Initialization of the script.
        }