public GradedSplitsComponent(LiveSplitState state) { CurrentState = state; Settings = new GradedSplitsSettings(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; }
public GradedLabelsComponent(GradedSplitsSettings settings, IEnumerable <GradedColumnData> columns) { Settings = settings; MinimumHeight = 31; MeasureTimeLabel = new SimpleLabel(); MeasureDeltaLabel = new SimpleLabel(); TimeFormatter = new GradedRegularSplitTimeFormatter(Settings.SplitTimesAccuracy); DeltaTimeFormatter = new GradedDeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals); Cache = new GraphicsCache(); LabelsList = new List <SimpleLabel>(); ColumnsList = columns; }
public GradedSplitComponent(GradedSplitsSettings settings, IEnumerable <GradedColumnData> columnsList) { NameLabel = new SimpleLabel() { HorizontalAlignment = StringAlignment.Near, X = 8, }; MeasureTimeLabel = new SimpleLabel(); MeasureDeltaLabel = new SimpleLabel(); Settings = settings; ColumnsList = columnsList; TimeFormatter = new GradedRegularSplitTimeFormatter(Settings.SplitTimesAccuracy); DeltaTimeFormatter = new GradedDeltaSplitTimeFormatter(Settings.DeltasAccuracy, Settings.DropDecimals); MinimumHeight = 25; VerticalHeight = 31; NeedUpdateAll = true; IsActive = false; Cache = new GraphicsCache(); LabelsList = new List <SimpleLabel>(); }