public override void Update(UI.IInvalidator invalidator, Model.LiveSplitState state, float width, float height, UI.LayoutMode mode) { if (Scores.Count() != State.Run.Count) { initArrays(); } }
public void Update(UI.IInvalidator invalidator, LiveSplitState state, float width, float height, UI.LayoutMode mode) { if (State == null) { State = state; Model.CurrentState = State; } }
public override void Update(UI.IInvalidator invalidator, LiveSplitState lsState, float width, float height, UI.LayoutMode mode) { if (Game != null && !Game.HasExited) { OldState = State.RefreshValues(); if (lsState.CurrentPhase == TimerPhase.NotRunning) { if (Start(lsState, OldState.Data, State.Data)) { Model.Start(); } } else if (lsState.CurrentPhase == TimerPhase.Running || lsState.CurrentPhase == TimerPhase.Paused) { if (Reset(lsState, OldState.Data, State.Data)) { Model.Reset(); return; } else if (Split(lsState, OldState.Data, State.Data)) { Model.Split(); } var isPaused = IsPaused(lsState, OldState.Data, State.Data); lsState.IsGameTimePaused = isPaused; var gameTime = GameTime(lsState, OldState.Data, State.Data); if (gameTime != null) { lsState.SetGameTime(gameTime); } } } else { if (Model == null) { Model = new TimerModel() { CurrentState = lsState }; } TryConnect(); } }
public override void Update(UI.IInvalidator invalidator, LiveSplitState state, float width, float height, UI.LayoutMode mode) { if (!VLC.IsDisposed) { base.Update(invalidator, state, width, height, mode); if (!Initialized) { Control.Visible = !Control.Created; Initialized = Control.Created; } else { if (VLC != null && OldMRL != Settings.MRL && !string.IsNullOrEmpty(Settings.MRL)) { InvokeIfNeeded(() => { lock (VLC) { VLC.playlist.items.clear(); VLC.playlist.add(Settings.MRL); } }); } OldMRL = Settings.MRL; if (VLC != null) { InvokeIfNeeded(() => { lock (VLC) { VLC.audio.mute = true; VLC.Volume = 5; } }); } } } }
public override void Update(UI.IInvalidator invalidator, Model.LiveSplitState state, float width, float height, UI.LayoutMode mode) { }