public TitleComponent(SplitsSettings settings) { VerticalHeight = 10; Settings = settings; Cache = new GraphicsCache(); GameNameLabel = new SimpleLabel(); CategoryNameLabel = new SimpleLabel(); AttemptCountLabel = new SimpleLabel(); }
public SplitsComponent(LiveSplitState state) { CurrentState = state; Settings = new SplitsSettings(state); InternalComponent = new ComponentRendererComponent(); visualSplitCount = Settings.VisualSplitCount; settingsSplitCount = Settings.VisualSplitCount; settingsShowTitle = Settings.ShowTitle; Settings.SplitLayoutChanged += Settings_SplitLayoutChanged; ScrollOffset = 0; RebuildVisualSplits(); state.ComparisonRenamed += state_ComparisonRenamed; }
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); }
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>(); IEnumerable <ColumnData> splitsLabel = new ColumnData[] { new ColumnData(Settings.SplitsLabel, ColumnType.SplitsLabel, null, null) }; ColumnsList = splitsLabel.Concat(columns); }
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 = 25; VerticalHeight = 31; NeedUpdateAll = true; IsActive = false; Cache = new GraphicsCache(); LabelsList = new List <SimpleLabel>(); }