2016-10-19 10:44:03 +00:00
|
|
|
|
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
|
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2016-11-14 09:54:24 +00:00
|
|
|
|
using osu.Game.Modes.UI;
|
2016-10-19 10:44:03 +00:00
|
|
|
|
using OpenTK;
|
|
|
|
|
using OpenTK.Input;
|
2016-11-14 16:22:20 +00:00
|
|
|
|
using osu.Framework.Graphics.Primitives;
|
2016-10-19 10:44:03 +00:00
|
|
|
|
|
2016-11-14 09:54:24 +00:00
|
|
|
|
namespace osu.Game.Modes.Osu.UI
|
2016-10-19 10:44:03 +00:00
|
|
|
|
{
|
2016-11-14 10:20:21 +00:00
|
|
|
|
public class OsuScoreOverlay : ScoreOverlay
|
2016-10-19 10:44:03 +00:00
|
|
|
|
{
|
|
|
|
|
protected override PercentageCounter CreateAccuracyCounter() => new PercentageCounter()
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.TopRight,
|
|
|
|
|
Origin = Anchor.TopRight,
|
|
|
|
|
Position = new Vector2(0, 45)
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protected override ScoreCounter CreateScoreCounter() => new ScoreCounter()
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.TopRight,
|
|
|
|
|
Origin = Anchor.TopRight,
|
|
|
|
|
TextSize = 60
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protected override ComboCounter CreateComboCounter() => new OsuComboCounter()
|
|
|
|
|
{
|
|
|
|
|
Anchor = Anchor.BottomLeft,
|
|
|
|
|
Origin = Anchor.BottomLeft,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
protected override KeyCounterCollection CreateKeyCounter() => new KeyCounterCollection
|
|
|
|
|
{
|
|
|
|
|
IsCounting = true,
|
|
|
|
|
FadeTime = 50,
|
|
|
|
|
Anchor = Anchor.BottomRight,
|
|
|
|
|
Origin = Anchor.BottomRight,
|
2016-11-14 16:22:20 +00:00
|
|
|
|
Margin = new MarginPadding(10),
|
2016-10-19 10:44:03 +00:00
|
|
|
|
Counters = new KeyCounter[]
|
2016-11-14 09:54:24 +00:00
|
|
|
|
{
|
|
|
|
|
new KeyCounterKeyboard(@"Z", Key.Z),
|
|
|
|
|
new KeyCounterKeyboard(@"X", Key.X),
|
|
|
|
|
new KeyCounterMouse(@"M1", MouseButton.Left),
|
|
|
|
|
new KeyCounterMouse(@"M2", MouseButton.Right),
|
|
|
|
|
}
|
2016-10-19 10:44:03 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|