Beispiel #1
0
        public Component(LiveSplitState state)
        {
            valueTextFormat = new StringFormat(StringFormatFlags.NoWrap);
            valueTextFormat.LineAlignment = StringAlignment.Center;

            descriptiveTextFormat = new StringFormat(StringFormatFlags.NoWrap);
            descriptiveTextFormat.LineAlignment = StringAlignment.Center;

            graphBrush     = Brushes.Transparent;
            polygon_points = new PointF[4] {
                new Point(0, 0), new Point(0, 0), new Point(0, 0), new Point(0, 0),
            };                                                                                                       //LB, LU, RU, RB
            fake_particles = new float[5] {
                185, 143, 6, 168, 91
            };
            graphPen = new Pen(graphBrush);
            sonic    = new SonicHandling();

            settings = new Settings();
            settings.HandleDestroyed += SettingsUpdated;
            SettingsUpdated(null, null);
        }
        public Component(LiveSplitState state)
        {
            valueTextFormat = new StringFormat(StringFormatFlags.NoWrap);
            valueTextFormat.LineAlignment = StringAlignment.Center;

            descriptiveTextFormat = new StringFormat(StringFormatFlags.NoWrap);
            descriptiveTextFormat.LineAlignment = StringAlignment.Center;

            graphBrush = Brushes.Transparent;
            polygon_points = new PointF[4] { new Point(0, 0), new Point(0, 0), new Point(0, 0), new Point(0, 0), };  //LB, LU, RU, RB
            fake_particles = new float[5] { 185, 143, 6, 168, 91 };
            graphPen = new Pen(graphBrush);

            settings = new Settings();
            sonic = new SonicHandling();
            settings.HandleDestroyed += SettingsUpdated;
            SettingsUpdated(null, null);
        }