public RecordComponent(LeaderBoardSettings settings) { RankLabel = new SimpleLabel(); NameLabel = new SimpleLabel(); TimeLabel = new SimpleLabel(); Settings = settings; MinimumHeight = 10; Cache = new GraphicsCache(); }
public LeaderBoardComponent(LiveSplitState state) { State = state; Client = new SpeedrunComClient(userAgent: Updates.UpdateHelper.UserAgent, maxCacheElements: 0); RefreshInterval = TimeSpan.FromMinutes(5); Cache = new GraphicsCache(); TimeFormatter = new AutomaticPrecisionTimeFormatter(); LocalTimeFormatter = new RegularTimeFormatter(); InternalComponent = new InfoTextComponent("Leaderboard", "-"); Settings = new LeaderBoardSettings() { CurrentState = state }; }