mirror of https://github.com/ppy/osu
Adjust metrics
This commit is contained in:
parent
86c2b7e449
commit
4b140e1f5a
|
@ -13,22 +13,22 @@ namespace osu.Game.Skinning
|
||||||
{
|
{
|
||||||
public class LegacySongProgress : SongProgress
|
public class LegacySongProgress : SongProgress
|
||||||
{
|
{
|
||||||
private CircularProgress pie = null!;
|
private CircularProgress circularProgress = null!;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load()
|
||||||
{
|
{
|
||||||
Size = new Vector2(35);
|
Size = new Vector2(33);
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
Size = new Vector2(0.95f),
|
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Child = pie = new CircularProgress
|
Size = new Vector2(0.92f),
|
||||||
|
Child = circularProgress = new CircularProgress
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
|
@ -51,7 +51,7 @@ private void load()
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Colour = Colour4.White,
|
Colour = Colour4.White,
|
||||||
Size = new Vector2(3),
|
Size = new Vector2(4),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -70,17 +70,17 @@ protected override void UpdateProgress(double progress, bool isIntro)
|
||||||
{
|
{
|
||||||
if (isIntro)
|
if (isIntro)
|
||||||
{
|
{
|
||||||
pie.Scale = new Vector2(-1, 1);
|
circularProgress.Scale = new Vector2(-1, 1);
|
||||||
pie.Anchor = Anchor.TopRight;
|
circularProgress.Anchor = Anchor.TopRight;
|
||||||
pie.Colour = new Colour4(199, 255, 47, 153);
|
circularProgress.Colour = new Colour4(199, 255, 47, 153);
|
||||||
pie.Current.Value = 1 - progress;
|
circularProgress.Current.Value = 1 - progress;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
pie.Scale = new Vector2(1);
|
circularProgress.Scale = new Vector2(1);
|
||||||
pie.Anchor = Anchor.TopLeft;
|
circularProgress.Anchor = Anchor.TopLeft;
|
||||||
pie.Colour = new Colour4(255, 255, 255, 153);
|
circularProgress.Colour = new Colour4(255, 255, 255, 153);
|
||||||
pie.Current.Value = progress;
|
circularProgress.Current.Value = progress;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue