Made RoundedToggleSwitch play mouse down animation
Made UiThread SetInterval return a RunningInterval Added EaseIn EaseOut and EaseInOut to agg_basics
This commit is contained in:
parent
69a6a39545
commit
3091a719ee
15 changed files with 104 additions and 69 deletions
|
|
@ -77,11 +77,13 @@ namespace MatterHackers.MatterControl.ConfigurationPage.PrintLeveling
|
|||
Margin = new BorderDouble(10, 0),
|
||||
};
|
||||
|
||||
UiThread.SetInterval(() =>
|
||||
var runningInterval = UiThread.SetInterval(() =>
|
||||
{
|
||||
Vector3 destinationPosition = printer.Connection.CurrentDestination;
|
||||
zPosition.Text = "Z: {0:0.00}".FormatWith(destinationPosition.Z);
|
||||
}, .3, () => !HasBeenClosed);
|
||||
}, .3);
|
||||
|
||||
this.Closed += (s, e) => runningInterval.Continue = false;
|
||||
|
||||
zButtonsAndInfo.AddChild(zPosition);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue