2020-10-15 15:31:21 +08: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 11:42:32 +08:00
|
|
|
using osu.Game.Skinning;
|
2020-10-15 15:31:21 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Play.HUD
|
|
|
|
{
|
2021-05-13 16:06:00 +08:00
|
|
|
public class DefaultScoreCounter : GameplayScoreCounter, ISkinnableDrawable
|
2020-10-15 15:31:21 +08:00
|
|
|
{
|
|
|
|
public DefaultScoreCounter()
|
|
|
|
{
|
|
|
|
Anchor = Anchor.TopCentre;
|
|
|
|
Origin = Anchor.TopCentre;
|
|
|
|
}
|
|
|
|
|
2020-10-15 15:56:05 +08:00
|
|
|
[Resolved(canBeNull: true)]
|
|
|
|
private HUDOverlay hud { get; set; }
|
|
|
|
|
2021-06-08 20:22:35 +08:00
|
|
|
public bool UsesFixedAnchor { get; set; }
|
2021-06-07 11:47:47 +08:00
|
|
|
|
2020-10-15 15:31:21 +08:00
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
Colour = colours.BlueLighter;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|