Example #1
0
 public SplitsComponent(LiveSplitState state)
 {
     CurrentState                 = state;
     Settings                     = new SplitsSettings(state);
     InternalComponent            = new ComponentRendererComponent();
     ShadowImages                 = new Dictionary <Image, Image>();
     visualSplitCount             = Settings.VisualSplitCount;
     settingsSplitCount           = Settings.VisualSplitCount;
     Settings.SplitLayoutChanged += Settings_SplitLayoutChanged;
     ScrollOffset                 = 0;
     RebuildVisualSplits();
     state.ComparisonRenamed += state_ComparisonRenamed;
 }
Example #2
0
 public SplitsComponent(LiveSplitState state)
 {
     CurrentState = state;
     Settings = new SplitsSettings(state);
     InternalComponent = new ComponentRendererComponent();
     ShadowImages = new Dictionary<Image, Image>();
     visualSplitCount = Settings.VisualSplitCount;
     settingsSplitCount = Settings.VisualSplitCount;
     Settings.SplitLayoutChanged += Settings_SplitLayoutChanged;
     ScrollOffset = 0;
     RebuildVisualSplits();
     state.ComparisonRenamed += state_ComparisonRenamed;
 }
Example #3
0
        public LabelsComponent(SplitsSettings settings, IEnumerable <ColumnData> columns)
        {
            Settings      = settings;
            MinimumHeight = 31;

            MeasureTimeLabel   = new SimpleLabel();
            MeasureDeltaLabel  = new SimpleLabel();
            TimeFormatter      = new RegularSplitTimeFormatter(Settings.SplitTimesAccuracy);
            DeltaTimeFormatter = new DeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals);

            Cache       = new GraphicsCache();
            LabelsList  = new List <SimpleLabel>();
            ColumnsList = columns;
        }
 public SplitsComponent(LiveSplitState state)
 {
     CurrentState                 = state;
     Settings                     = new SplitsSettings(state);
     InternalComponent            = new ComponentRendererComponent();
     ShadowImages                 = new Dictionary <Image, Image>();
     visualSplitCount             = Settings.VisualSplitCount;
     Settings.SplitLayoutChanged += Settings_SplitLayoutChanged;
     ScrollOffset                 = 0;
     RebuildVisualSplits();
     sectionList = new SectionList();
     previousRun = state.Run;
     sectionList.UpdateSplits(state.Run);
 }
Example #5
0
        public LabelsComponent(SplitsSettings settings, IEnumerable<ColumnData> columns)
        {
            Settings = settings;
            MinimumHeight = 31;

            MeasureTimeLabel = new SimpleLabel();
            MeasureDeltaLabel = new SimpleLabel();
            TimeFormatter = new RegularSplitTimeFormatter(Settings.SplitTimesAccuracy);
            DeltaTimeFormatter = new DeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals);

            Cache = new GraphicsCache();
            LabelsList = new List<SimpleLabel>();
            ColumnsList = columns;
        }
 public SplitsComponent(LiveSplitState state)
 {
     Settings = new SplitsSettings()
     {
         CurrentState = state
     };
     InternalComponent = new ComponentRendererComponent();
     ShadowImages = new Dictionary<Image, Image>();
     visualSplitCount = Settings.VisualSplitCount;
     settingsSplitCount = Settings.VisualSplitCount;
     Settings.SplitLayoutChanged += Settings_SplitLayoutChanged;
     ScrollOffset = 0;
     RebuildVisualSplits();
     sectionList = new SectionList();
     previousRun = state.Run;
     sectionList.UpdateSplits(state.Run);
 }
Example #7
0
        public SplitComponent(SplitsSettings settings, IEnumerable<ColumnData> columnsList)
        {
            NameLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Near,
                X = 8,
            };
            MeasureTimeLabel = new SimpleLabel();
            MeasureDeltaLabel = new SimpleLabel();
            Settings = settings;
            ColumnsList = columnsList;
            TimeFormatter = new RegularSplitTimeFormatter(Settings.SplitTimesAccuracy);
            DeltaTimeFormatter = new DeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals);
            MinimumHeight = 31;

            NeedUpdateAll = true;
            IsActive = false;

            Cache = new GraphicsCache();
            LabelsList = new List<SimpleLabel>();
        }
Example #8
0
        public SplitComponent(SplitsSettings settings)
        {
            NoIconShadow = IconShadow.Generate(NoIconImage, Color.Black);
            NameLabel    = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Near,
                X = 8,
            };
            MeasureTimeLabel   = new SimpleLabel();
            MeasureDeltaLabel  = new SimpleLabel();
            Settings           = settings;
            TimeFormatter      = new RegularSplitTimeFormatter(Settings.SplitTimesAccuracy);
            DeltaTimeFormatter = new DeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals);
            MinimumHeight      = 31;

            NeedUpdateAll = true;
            IsActive      = false;

            Cache      = new GraphicsCache();
            LabelsList = new List <SimpleLabel>();
        }
Example #9
0
        public SplitComponent(SplitsSettings settings, IEnumerable <ColumnData> columnsList)
        {
            NameLabel = new SimpleLabel()
            {
                HorizontalAlignment = StringAlignment.Near,
                X = 8,
            };
            MeasureTimeLabel   = new SimpleLabel();
            MeasureDeltaLabel  = new SimpleLabel();
            Settings           = settings;
            ColumnsList        = columnsList;
            TimeFormatter      = new RegularSplitTimeFormatter(Settings.SplitTimesAccuracy);
            DeltaTimeFormatter = new DeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals);
            MinimumHeight      = 31;

            NeedUpdateAll = true;
            IsActive      = false;

            Cache      = new GraphicsCache();
            LabelsList = new List <SimpleLabel>();
        }