コード例 #1
0
 public ManualGameTimeComponent(LiveSplitState state)
 {
     Settings = new ManualGameTimeSettings();
     GameTimeForm = new ShitSplitter(state, Settings);
     state.OnStart += state_OnStart;
     state.OnReset += state_OnReset;
     CurrentState = state;
 }
コード例 #2
0
 void state_OnStart(object sender, EventArgs e)
 {
     GameTimeForm = new ShitSplitter(CurrentState, Settings);
     CurrentState.Form.Invoke(new Action(() => GameTimeForm.Show(CurrentState.Form)));
     if (!PreviousLocation.IsEmpty)
         GameTimeForm.Location = PreviousLocation;
     CurrentState.IsGameTimePaused = true;
     CurrentState.SetGameTime(TimeSpan.Zero);
 }