示例#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;
 }
 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)
 {
     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);
 }