Inheritance: MonoBehaviour
Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (lblTransactionText != null)
            {
                lblTransactionText.Dispose();
                lblTransactionText = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (TransactionImage != null)
            {
                TransactionImage.Dispose();
                TransactionImage = null;
            }

            if (vBasis != null)
            {
                vBasis.Dispose();
                vBasis = null;
            }
        }
Example #2
0
        public void TimeText()
        {
            var timeText = new TimeText
            {
                Direction = TimeTextDirection.Down,
                Format = "%M:%S",
                Start = 1552070232
            };

            Assert.True(Utility.CompareJson(timeText, "TimeText.json"));
        }
Example #3
0
 // Use this for initialization
 void Start()
 {
     for (int i = 0; i < 3; i++)
     {
         temperature[i] = Random.Range(20f, 30f);
     }
     skillon     = true;
     bonus       = 0;
     time        = GameObject.Find("Time");
     timeText    = time.GetComponent <TimeText>();
     tempinc     = 0.03f;
     audioSource = GetComponent <AudioSource>();
 }
        public void Clear()
        {
            GameText.Clear();
            CategoryText.Clear();
            RunnerNamesText.Clear();
            PlatformText.Clear();
            EstimateText.Clear();
            TimeText.Clear();

            if (curRun != null)
            {
                curRun.PropertyChanged -= Run_PropertyChanged;
                curRun = null;
            }
        }
Example #5
0
 void Update()
 {
     if (Length > 0)
     {
         transform.Translate(0, Iteration, 0);
         Length += Iteration;
     }
     else
     {
         TimeText.GetComponent <Text>().enabled    = true;
         ScoreText.GetComponent <Text>().enabled   = true;
         LivesText.GetComponent <Text>().enabled   = true;
         RuleText.GetComponent <Text>().enabled    = true;
         Curtain.GetComponent <DownFlag>().enabled = false;
     }
 }
Example #6
0
 private void StartTimer()
 {
     System.Timers.Timer timer = new System.Timers.Timer();
     timer.AutoReset = true;
     timer.Interval  = 1 * 1000;
     timer.Enabled   = true;
     timer.Elapsed  += (o, args) => {
         TimeText.BeginInvoke((MethodInvoker)(() =>
         {
             tk = --i;
             TimeSpan span = TimeSpan.FromMinutes(tk);
             string label = span.ToString(@"hh\:mm");
             TimeText.Text = label.ToString();
             TimeText.Refresh();
             if (TimeText.Text == "00:00")
             {
                 timer.Dispose();
                 MessageBox.Show($"Время закончилось ваш резултат:{ScoreText.Text}", "Время вышло", MessageBoxButtons.OK);
                 this.Close();
             }
         }));
     };
     timer.Start();
 }
Example #7
0
 void Start()
 {
     instance = this;
 }
Example #8
0
        public TimeEntry()
            : base()
        {
            CanFocus = true;
            Spacing  = 2;

            int width, height;

            Icon.SizeLookup(icon_size, out width, out height);
            IconTheme theme = IconTheme.GetForScreen(Screen);

            DrawingCellHBox entrycontents = new DrawingCellHBox();

            entrycontents.PackStart(new DrawingCellNull(), true);
            entrycontents.Spacing = 0;

            labelcontents = new DrawingCellHBox();
            entrycontents.PackEnd(labelcontents, false);
            labels[0] = new TimeText(this, DataPart.Hour);
            labels[1] = new TimeText(this, DataPart.HourSeparator);
            labels[2] = new TimeText(this, DataPart.Minute);
            labels[3] = new TimeText(this, DataPart.HourSeparator);
            labels[4] = new TimeText(this, DataPart.Second);
            labels[5] = new TimeText(this, DataPart.MillisecondSeparator);
            labels[6] = new TimeText(this, DataPart.Millisecond);
            labels[7] = new TimeText(this, DataPart.AMPM);
            foreach (TimeText t in labels)
            {
                t.XPos = 0.5;
                t.YPos = 0.5;
                labelcontents.PackEnd(t, false);
            }

            string s   = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;
            bool   res = (s.ToLower().IndexOf("t") > -1);

            if (res == false)
            {
                s   = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern;
                res = (s.ToLower().IndexOf("t") > -1);
            }
            TwelveHour = res;

            clearimg            = new DrawingCellActivePixbuf(theme.LoadIcon(Stock.Clear, width, 0));
            clearimg.Activated += delegate {
                OnClearData();
            };
            entrycontents.PackStart(clearimg, false);

            addimg            = new DrawingCellActivePixbuf(theme.LoadIcon(Stock.Add, width, 0));
            addimg.Activated += delegate {
                OnStartCalculator();
            };
            entrycontents.PackStart(addimg, false);

            entry = new DrawingCellEntry(entrycontents);
//			entry.Padding = 1;
            entry.SideCut = SideCut.Right;
            PackStart(entry, true);

            dropdown            = new DrawingCellButton(new DrawingCellComboArrow());
            dropdown.SideCut    = SideCut.Left;
            dropdown.Activated += delegate {
                OnDropDown();
            };

            PackEnd(dropdown, false);

            Gtk.Drag.DestSet(this, DestDefaults.All, ValidTargets, Gdk.DragAction.Copy);
            DragDataReceived += HandleDragDataReceived;

            Gtk.Drag.SourceSet(this, Gdk.ModifierType.Button1Mask, ValidTargets, DragAction.Copy);
            DragBegin   += HandleDragBegin;
            DragDataGet += HandleDragDataGet;
        }
        void ReleaseDesignerOutlets()
        {
            if (AspectHeight != null)
            {
                AspectHeight.Dispose();
                AspectHeight = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeTextLbl != null)
            {
                ChallengeTextLbl.Dispose();
                ChallengeTextLbl = null;
            }

            if (cnImagePlaceholderAspect != null)
            {
                cnImagePlaceholderAspect.Dispose();
                cnImagePlaceholderAspect = null;
            }

            if (cnImagesCountHeight != null)
            {
                cnImagesCountHeight.Dispose();
                cnImagesCountHeight = null;
            }

            if (cnMapPlaceholderAspect != null)
            {
                cnMapPlaceholderAspect.Dispose();
                cnMapPlaceholderAspect = null;
            }

            if (cnMarginCount != null)
            {
                cnMarginCount.Dispose();
                cnMarginCount = null;
            }

            if (cnsMapTop1 != null)
            {
                cnsMapTop1.Dispose();
                cnsMapTop1 = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CountChallengeLbl != null)
            {
                CountChallengeLbl.Dispose();
                CountChallengeLbl = null;
            }

            if (DetailCollectionView != null)
            {
                DetailCollectionView.Dispose();
                DetailCollectionView = null;
            }

            if (DetailCollectionViewAspect != null)
            {
                DetailCollectionViewAspect.Dispose();
                DetailCollectionViewAspect = null;
            }

            if (MapViewBase != null)
            {
                MapViewBase.Dispose();
                MapViewBase = null;
            }

            if (NeedUploadCountText1 != null)
            {
                NeedUploadCountText1.Dispose();
                NeedUploadCountText1 = null;
            }

            if (paddingMap != null)
            {
                paddingMap.Dispose();
                paddingMap = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (ScrollContent != null)
            {
                ScrollContent.Dispose();
                ScrollContent = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (UploadedCountText1 != null)
            {
                UploadedCountText1.Dispose();
                UploadedCountText1 = null;
            }

            if (vImagePlaceholder != null)
            {
                vImagePlaceholder.Dispose();
                vImagePlaceholder = null;
            }

            if (vImagesCount != null)
            {
                vImagesCount.Dispose();
                vImagesCount = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
 void Start()
 {
     textScript    = textObj.GetComponent <TimeText>();
     winTextScript = winTextObj.GetComponent <WinText>();
 }
Example #11
0
        void ReleaseDesignerOutlets()
        {
            if (btnTopNotify != null)
            {
                btnTopNotify.Dispose();
                btnTopNotify = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeText != null)
            {
                ChallengeText.Dispose();
                ChallengeText = null;
            }

            if (cnsTableViewHeight != null)
            {
                cnsTableViewHeight.Dispose();
                cnsTableViewHeight = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CollectionViewHeightConstraint != null)
            {
                CollectionViewHeightConstraint.Dispose();
                CollectionViewHeightConstraint = null;
            }

            if (Content != null)
            {
                Content.Dispose();
                Content = null;
            }

            if (ImageHeightConstraint != null)
            {
                ImageHeightConstraint.Dispose();
                ImageHeightConstraint = null;
            }

            if (ImageOverlayView != null)
            {
                ImageOverlayView.Dispose();
                ImageOverlayView = null;
            }

            if (imgTopLock != null)
            {
                imgTopLock.Dispose();
                imgTopLock = null;
            }

            if (lblTopTime != null)
            {
                lblTopTime.Dispose();
                lblTopTime = null;
            }

            if (lblTopUnlocksIn != null)
            {
                lblTopUnlocksIn.Dispose();
                lblTopUnlocksIn = null;
            }

            if (MCCollectionView != null)
            {
                MCCollectionView.Dispose();
                MCCollectionView = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }

            if (SelectAllThatApply != null)
            {
                SelectAllThatApply.Dispose();
                SelectAllThatApply = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TableView != null)
            {
                TableView.Dispose();
                TableView = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
Example #12
0
 void Awake()
 {
     _instance = this;
     text = GetComponent<Text>();
 }
		public TimeEntry()
			: base()
		{
			CanFocus = true;
			Spacing = 2;
			
			int width, height;
			Icon.SizeLookup(icon_size, out width, out height);
			IconTheme theme = IconTheme.GetForScreen(Screen);

			DrawingCellHBox entrycontents = new DrawingCellHBox();
			entrycontents.PackStart (new DrawingCellNull(), true);
			entrycontents.Spacing = 0;

			labelcontents = new DrawingCellHBox();
			entrycontents.PackEnd (labelcontents, false);
			labels[0] = new TimeText (this, DataPart.Hour);
			labels[1] = new TimeText (this, DataPart.HourSeparator);
			labels[2] = new TimeText (this, DataPart.Minute);
			labels[3] = new TimeText (this, DataPart.HourSeparator);
			labels[4] = new TimeText (this, DataPart.Second);
			labels[5] = new TimeText (this, DataPart.MillisecondSeparator);
			labels[6] = new TimeText (this, DataPart.Millisecond);
			labels[7] = new TimeText (this, DataPart.AMPM);
			foreach (TimeText t in labels) {
				t.XPos = 0.5;
				t.YPos = 0.5;
				labelcontents.PackEnd (t, false);
			}
			
			string s = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.ShortDatePattern;
			bool res = (s.ToLower().IndexOf("t") > -1);
			if (res == false) {
				s = System.Threading.Thread.CurrentThread.CurrentCulture.DateTimeFormat.LongTimePattern;
				res = (s.ToLower().IndexOf("t") > -1);
			}
			TwelveHour = res;

			clearimg = new DrawingCellActivePixbuf (theme.LoadIcon(Stock.Clear, width, 0));
			clearimg.Activated += delegate {
				OnClearData();
			};
			entrycontents.PackStart (clearimg, false);
			
			addimg = new DrawingCellActivePixbuf (theme.LoadIcon(Stock.Add, width, 0));
			addimg.Activated += delegate {
				OnStartCalculator();
			};
			entrycontents.PackStart (addimg, false);

			entry = new DrawingCellEntry (entrycontents);
//			entry.Padding = 1;
			entry.SideCut = SideCut.Right;
			PackStart (entry, true);
			
			dropdown = new DrawingCellButton (new DrawingCellComboArrow());
			dropdown.SideCut = SideCut.Left;
			dropdown.Activated += delegate {
				OnDropDown();
			};

			PackEnd (dropdown, false);
			
			Gtk.Drag.DestSet (this, DestDefaults.All, ValidTargets, Gdk.DragAction.Copy);
			DragDataReceived += HandleDragDataReceived;
			
			Gtk.Drag.SourceSet (this, Gdk.ModifierType.Button1Mask, ValidTargets, DragAction.Copy);
			DragBegin += HandleDragBegin;
			DragDataGet += HandleDragDataGet;
		}
        void ReleaseDesignerOutlets()
        {
            if (AspectHeight != null)
            {
                AspectHeight.Dispose();
                AspectHeight = null;
            }

            if (ChallengeImage != null)
            {
                ChallengeImage.Dispose();
                ChallengeImage = null;
            }

            if (ChallengeText != null)
            {
                ChallengeText.Dispose();
                ChallengeText = null;
            }

            if (cnsWebViewHeight != null)
            {
                cnsWebViewHeight.Dispose();
                cnsWebViewHeight = null;
            }

            if (CollectionView != null)
            {
                CollectionView.Dispose();
                CollectionView = null;
            }

            if (CollectionViewDescription != null)
            {
                CollectionViewDescription.Dispose();
                CollectionViewDescription = null;
            }

            if (HashBottomText != null)
            {
                HashBottomText.Dispose();
                HashBottomText = null;
            }

            if (HashtagCopiedText != null)
            {
                HashtagCopiedText.Dispose();
                HashtagCopiedText = null;
            }

            if (HashText != null)
            {
                HashText.Dispose();
                HashText = null;
            }

            if (HashTitle != null)
            {
                HashTitle.Dispose();
                HashTitle = null;
            }

            if (InstaCollectionView != null)
            {
                InstaCollectionView.Dispose();
                InstaCollectionView = null;
            }

            if (InstaCollectionViewAspect != null)
            {
                InstaCollectionViewAspect.Dispose();
                InstaCollectionViewAspect = null;
            }

            if (MainScroll != null)
            {
                MainScroll.Dispose();
                MainScroll = null;
            }

            if (MainSrollBottomConstraint != null)
            {
                MainSrollBottomConstraint.Dispose();
                MainSrollBottomConstraint = null;
            }

            if (PointsImage != null)
            {
                PointsImage.Dispose();
                PointsImage = null;
            }

            if (PointsText != null)
            {
                PointsText.Dispose();
                PointsText = null;
            }

            if (SubmitButton != null)
            {
                SubmitButton.Dispose();
                SubmitButton = null;
            }

            if (TagCopiedView != null)
            {
                TagCopiedView.Dispose();
                TagCopiedView = null;
            }

            if (TimeText != null)
            {
                TimeText.Dispose();
                TimeText = null;
            }

            if (WebView != null)
            {
                WebView.Dispose();
                WebView = null;
            }
        }
Example #15
0
 // Use this for initialization
 void Start()
 {
     _instance = this;
     timetext  = GetComponent <Text>();
     startTime = DateTime.Now;
 }
Example #16
0
 public TimeStopListItem()
 {
     InitializeComponent();
     TimeText.SetValue(RotateEffect.IsEnabledProperty, true);
     StopText.SetValue(RotateEffect.IsEnabledProperty, true);
 }