public SumOfBestComponent(LiveSplitState state)
 {
     Formatter = new RegularSumOfBestTimeFormatter();
     InternalComponent = new InfoTimeComponent("Sum of Best Segments", null, Formatter)
     {
         AlternateNameText = new String[]
         {
             "Sum of Best",
             "SoB"
         }
     };
     Settings = new SumOfBestSettings();
     state.OnSplit += state_OnSplit;
     state.OnUndoSplit += state_OnUndoSplit;
     state.OnReset += state_OnReset;
     CurrentState = state;
     CurrentState.RunManuallyModified += CurrentState_RunModified;
     UpdateSumOfBestValue(state);
 }
예제 #2
0
 public SumOfBestComponent(LiveSplitState state)
 {
     Formatter         = new RegularSumOfBestTimeFormatter();
     InternalComponent = new InfoTimeComponent("Sum of Best Segments", null, Formatter)
     {
         AlternateNameText = new string[]
         {
             "Sum of Best",
             "SoB"
         }
     };
     Settings           = new SumOfBestSettings();
     state.OnSplit     += state_OnSplit;
     state.OnUndoSplit += state_OnUndoSplit;
     state.OnReset     += state_OnReset;
     CurrentState       = state;
     CurrentState.RunManuallyModified += CurrentState_RunModified;
     UpdateSumOfBestValue(state);
 }