2017-02-07 12:59:30 +08:00
|
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
2016-10-19 18:44:03 +08:00
|
|
|
|
|
2017-03-10 10:59:08 +08:00
|
|
|
|
|
2016-10-19 18:44:03 +08:00
|
|
|
|
using OpenTK;
|
2017-03-10 10:59:08 +08:00
|
|
|
|
using osu.Framework.Graphics;
|
2016-11-15 00:22:20 +08:00
|
|
|
|
using osu.Framework.Graphics.Primitives;
|
2017-03-10 10:59:08 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2017-01-27 20:57:22 +08:00
|
|
|
|
using osu.Game.Screens.Play;
|
2016-10-19 18:44:03 +08:00
|
|
|
|
|
2017-03-10 10:59:08 +08:00
|
|
|
|
namespace osu.Game.Modes.UI
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
2017-03-10 10:59:08 +08:00
|
|
|
|
internal class StandardHUDOverlay : HUDOverlay
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
2017-03-10 10:59:08 +08:00
|
|
|
|
public StandardHUDOverlay(Ruleset ruleset)
|
|
|
|
|
: base(ruleset)
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
2017-03-10 10:59:08 +08:00
|
|
|
|
}
|
2016-10-19 18:44:03 +08:00
|
|
|
|
|
2017-03-07 09:59:19 +08:00
|
|
|
|
protected override PercentageCounter CreateAccuracyCounter() => new PercentageCounter
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
2017-02-16 21:44:41 +08:00
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
|
Position = new Vector2(0, 65),
|
|
|
|
|
TextSize = 20,
|
2016-12-07 20:05:29 +08:00
|
|
|
|
Margin = new MarginPadding { Right = 5 },
|
2016-10-19 18:44:03 +08:00
|
|
|
|
};
|
|
|
|
|
|
2017-03-10 10:59:08 +08:00
|
|
|
|
protected override BaseComboCounter CreateComboCounter() => new ComboCounter
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.BottomLeft,
|
|
|
|
|
Origin = Anchor.BottomLeft,
|
|
|
|
|
};
|
|
|
|
|
|
2017-03-10 10:59:08 +08:00
|
|
|
|
protected override KeyCounterCollection CreateKeyCounter(KeyCounter[] keyCounters) => new KeyCounterCollection
|
2016-10-19 18:44:03 +08:00
|
|
|
|
{
|
|
|
|
|
IsCounting = true,
|
|
|
|
|
FadeTime = 50,
|
|
|
|
|
Anchor = Anchor.BottomRight,
|
|
|
|
|
Origin = Anchor.BottomRight,
|
2016-11-15 00:22:20 +08:00
|
|
|
|
Margin = new MarginPadding(10),
|
2017-03-10 10:59:08 +08:00
|
|
|
|
Children = keyCounters
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter(6)
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.TopCentre,
|
|
|
|
|
Origin = Anchor.TopCentre,
|
|
|
|
|
TextSize = 40,
|
|
|
|
|
Position = new Vector2(0, 30),
|
|
|
|
|
Margin = new MarginPadding { Right = 5 },
|
2016-10-19 18:44:03 +08:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|