public ManualGameTimeComponent(LiveSplitState state) { Settings = new ManualGameTimeSettings(); GameTimeForm = new ShitSplitter(state, Settings); state.OnStart += state_OnStart; state.OnReset += state_OnReset; CurrentState = state; }
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); }