Ejemplo n.º 1
0
        public RaceComponent(LiveSplitState state)
        {
            Settings          = new RaceSettings();
            Comparison        = new RaceSplit();
            InternalComponent = new ComponentRendererComponent();
            InternalComponent.VisibleComponents = Components;

            CurrentState = state;
        }
Ejemplo n.º 2
0
 public EmbeddedLayoutComponent(LiveSplitState state)
 {
     Settings = new DeltaSettings()
     {
         CurrentState = state
     };
     InternalComponent = new ComponentRendererComponent();
     InternalComponent.VisibleComponents = new List <IComponent>()
     {
         new RunPrediction(state), new GraphCompositeComponent(state)
     };
 }
Ejemplo n.º 3
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;
 }
Ejemplo n.º 4
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;
 }
        public AutoCounterComponent(LiveSplitState state)
        {
            Settings     = new AutoCounterComponentSettings(state);
            CurrentState = state;

            Components        = new List <IComponent>();
            ItemComponents    = new List <ItemTrackerComponent>();
            InternalComponent = new ComponentRendererComponent();
            InternalComponent.VisibleComponents = Components;
            RebuildComponentList();

            Settings.SettingsChanged += Settings_SettingsChanged;
        }
 public GraphCompositeComponent(LiveSplitState state)
 {
     Settings = new GraphSettings()
     {
         CurrentState = state
     };
     InternalComponent = new ComponentRendererComponent();
     var components = new List<IComponent>();
     components.Add(new GraphSeparatorComponent(Settings) { LockToBottom = true });
     components.Add(new GraphComponent(Settings));
     components.Add(new GraphSeparatorComponent(Settings) { LockToBottom = false });
     InternalComponent.VisibleComponents = components;
     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);
 }
Ejemplo n.º 8
0
 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);
 }
Ejemplo n.º 9
0
        public GraphCompositeComponent(LiveSplitState state)
        {
            Settings = new GraphSettings()
            {
                CurrentState = state
            };
            InternalComponent = new ComponentRendererComponent();
            var components = new List <IComponent>();

            components.Add(new GraphSeparatorComponent(Settings)
            {
                LockToBottom = true
            });
            components.Add(new GraphComponent(Settings));
            components.Add(new GraphSeparatorComponent(Settings)
            {
                LockToBottom = false
            });
            InternalComponent.VisibleComponents = components;
            state.ComparisonRenamed            += state_ComparisonRenamed;
        }