Пример #1
0
        public Timer()
        {
            BigTextLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Far,
                VerticalAlignment   = StringAlignment.Near,
                Width = 493,
                Text  = "0",
            };

            SmallTextLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Near,
                VerticalAlignment   = StringAlignment.Near,
                Width = 257,
                Text  = "0",
            };

            DeathsLabel = new DeathCountLabel()
            {
                Text                = "0",
                Width               = 400,
                IsMonospaced        = true,
                HorizontalAlignment = StringAlignment.Near,
                VerticalAlignment   = StringAlignment.Near
            };

            MeasureDeathsLabel = new DeathCountLabel()
            {
                Text         = "9999",
                IsMonospaced = true
            };

            BigMeasureLabel = new SimpleLabel()
            {
                Text         = "88:88:88",
                IsMonospaced = true
            };

            Formatter = new ShortTimeFormatter();
            Settings  = new TimerSettings();
            UpdateTimeFormat();
            Cache              = new GraphicsCache();
            TimerColor         = Color.Transparent;
            DeathCountColor    = Color.Transparent;
            DeathsLabelVisible = true;
        }
Пример #2
0
        public Timer()
        {
            BigTextLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Far,
                VerticalAlignment = StringAlignment.Near,
                Width = 493,
                Text = "0",
            };

            SmallTextLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Near,
                VerticalAlignment = StringAlignment.Near,
                Width = 257,
                Text = "0",
            };


            BigMeasureLabel = new SimpleLabel()
            {
                Text = "88:88:88",
                IsMonospaced = true
            };

            Formatter = new ShortTimeFormatter();
            Settings = new TimerSettings();
            UpdateTimeFormat();
            Cache = new GraphicsCache();
        }