mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Update framework.
This commit is contained in:
parent
ad761eb66a
commit
f224960429
@ -1 +1 @@
|
||||
Subproject commit fdea70aee37b040d56fac5e9b27a18ed77f2bfb9
|
||||
Subproject commit cc28af53d93e2f1c5f0707c5616ed601e0cf9339
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user