mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 21:32:57 +08:00
Fix method which should be class.
This commit is contained in:
parent
77558abf58
commit
3125fa89ee
@ -152,18 +152,18 @@ namespace osu.Game.Screens.Select
|
|||||||
Margin = new MarginPadding { Top = 20 },
|
Margin = new MarginPadding { Top = 20 },
|
||||||
Spacing = new Vector2(40,0),
|
Spacing = new Vector2(40,0),
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both,
|
||||||
Children = new Drawable[]
|
Children = new []
|
||||||
{
|
{
|
||||||
infoLabel(FontAwesome.fa_clock_o, length),
|
new InfoLabel(FontAwesome.fa_clock_o, length),
|
||||||
infoLabel(FontAwesome.fa_circle, bpm),
|
new InfoLabel(FontAwesome.fa_circle, bpm),
|
||||||
infoLabel(FontAwesome.fa_dot_circle_o, hitCircles),
|
new InfoLabel(FontAwesome.fa_dot_circle_o, hitCircles),
|
||||||
infoLabel(FontAwesome.fa_circle_o, sliders),
|
new InfoLabel(FontAwesome.fa_circle_o, sliders),
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}).Preload(game, delegate(Drawable d)
|
}).Preload(game, delegate (Drawable d)
|
||||||
{
|
{
|
||||||
FadeIn(250);
|
FadeIn(250);
|
||||||
|
|
||||||
@ -187,14 +187,14 @@ namespace osu.Game.Screens.Select
|
|||||||
if (bpmMin > tmp) bpmMin = tmp;
|
if (bpmMin > tmp) bpmMin = tmp;
|
||||||
}
|
}
|
||||||
if (bpmMax == bpmMin) return Math.Round(bpmMin) + "bpm";
|
if (bpmMax == bpmMin) return Math.Round(bpmMin) + "bpm";
|
||||||
return Math.Round(bpmMin) + "-" + Math.Round(bpmMax) + "(" + Math.Round(bpmMost) + ")bpm";
|
return Math.Round(bpmMin) + "-" + Math.Round(bpmMax) + "bpm (avg. " + Math.Round(bpmMost) + "bpm)";
|
||||||
}
|
}
|
||||||
|
|
||||||
private Container infoLabel(FontAwesome icon, string text)
|
public class InfoLabel : Container
|
||||||
{
|
{
|
||||||
return new Container
|
public InfoLabel(FontAwesome icon, string text)
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Both,
|
AutoSizeAxes = Axes.Both;
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new TextAwesome
|
new TextAwesome
|
||||||
@ -218,8 +218,8 @@ namespace osu.Game.Screens.Select
|
|||||||
TextSize = 17,
|
TextSize = 17,
|
||||||
Origin = Anchor.CentreLeft
|
Origin = Anchor.CentreLeft
|
||||||
},
|
},
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user