public OutputProgressWindow( string baseName, bool showClipping, IProgressInfo progressInfo, IBufferLoading bufferLoading, Synthesizer.IStopTask stopCallback, IFinished finished, IWaitFinished waitFinished, ShowCompletionMethod showError) { this.stopCallback = stopCallback; this.bufferLoading = bufferLoading; this.progressInfo = progressInfo; this.finished = finished; this.waitFinished = waitFinished; this.showCompletion = showError; InitializeComponent(); this.Icon = OutOfPhase.Properties.Resources.Icon2; DpiChangeHelper.ScaleFont(this, Program.Config.AdditionalUIZoom); if (!showClipping) { labelTotalClippedPoints.Visible = false; textTotalClippedPoints.Visible = false; } UpdateValues(); this.Text = String.Format("{0} - {1}", baseName, "Synthesis"); }
// Update is called once per frame void Update() { _device.Update(); _deltaMove = _prevPos - _device.pos1; _prevPos = _device.pos1; UpdateCollisionTypes(); if (_target != null && !IsEnabled(_target as Behaviour)) { _activeState.InvokeInterrupt(); Reset(); } if (_device.state1 == Device.DeviceState.Down) { _activeState.InvokeDown(); } if (_device.state1 == Device.DeviceState.Hold) { if (moved()) { _activeState.InvokeMoved(); } else { _activeState.Update(); } } if (_device.state1 == Device.DeviceState.Up) { IGesture gesture = _target; _activeState.InvokeUp(); if (gesture != null) { IFinished finished = gesture as IFinished; if (finished != null) { FinishedArgs args = new FinishedArgs(_prevType, false, _startPos, _device.pos1); finished.OnGestureFinished(args); } } } }