Update framework.

This commit is contained in:
Dean Herbert 2016-11-28 20:09:20 +09:00
parent ad761eb66a
commit f224960429
2 changed files with 6 additions and 6 deletions

@ -1 +1 @@
Subproject commit fdea70aee37b040d56fac5e9b27a18ed77f2bfb9
Subproject commit cc28af53d93e2f1c5f0707c5616ed601e0cf9339

View File

@ -195,7 +195,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
protected override void LoadComplete()
{
base.LoadComplete();
path.PathWidth = 50;
path.PathWidth = 32;
}
protected override void Update()
@ -215,13 +215,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
{
//if we have gone backwards, just clear the path for now.
drawnProgress = 0;
path.Positions.Clear();
path.ClearVertices();
}
if (drawnProgress == null)
{
drawnProgress = 0;
path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value));
path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value));
}
double segmentSize = 1 / (slider.Curve.Length / 5);
@ -229,13 +229,13 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
while (drawnProgress + segmentSize < progress)
{
drawnProgress += segmentSize;
path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value));
path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value));
}
if (progress == 1 && drawnProgress != progress)
{
drawnProgress = progress;
path.Positions.Add(slider.Curve.PositionAt(drawnProgress.Value));
path.AddVertex(slider.Curve.PositionAt(drawnProgress.Value));
}
path.Invalidate(Invalidation.DrawNode);