2020-10-15 07:31:21 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Graphics;
|
2021-04-30 03:42:32 +00:00
|
|
|
using osu.Game.Skinning;
|
2020-10-15 07:31:21 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
|
|
{
|
2021-05-13 08:06:00 +00:00
|
|
|
public class DefaultScoreCounter : GameplayScoreCounter, ISkinnableDrawable
|
2020-10-15 07:31:21 +00:00
|
|
|
{
|
|
|
|
public DefaultScoreCounter()
|
|
|
|
: base(6)
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre;
|
|
|
|
Origin = Anchor.TopCentre;
|
|
|
|
}
|
|
|
|
|
2020-10-15 07:56:05 +00:00
|
|
|
[Resolved(canBeNull: true)]
|
|
|
|
private HUDOverlay hud { get; set; }
|
|
|
|
|
2021-06-08 12:22:35 +00:00
|
|
|
public bool UsesFixedAnchor { get; set; }
|
2021-06-07 03:47:47 +00:00
|
|
|
|
2020-10-15 07:31:21 +00:00
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
Colour = colours.BlueLighter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|