mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Added ModsContainer
This commit is contained in:
@ -27,6 +27,7 @@ namespace osu.Game.Rulesets.UI
|
||||
public readonly RollingCounter<double> AccuracyCounter;
|
||||
public readonly HealthDisplay HealthDisplay;
|
||||
public readonly SongProgress Progress;
|
||||
public readonly ModsContainer ModsContainer;
|
||||
|
||||
private Bindable<bool> showKeyCounter;
|
||||
private Bindable<bool> showHud;
|
||||
@ -39,6 +40,7 @@ namespace osu.Game.Rulesets.UI
|
||||
protected abstract ScoreCounter CreateScoreCounter();
|
||||
protected abstract HealthDisplay CreateHealthDisplay();
|
||||
protected abstract SongProgress CreateProgress();
|
||||
protected abstract ModsContainer CreateModsContainer();
|
||||
|
||||
protected HudOverlay()
|
||||
{
|
||||
@ -56,6 +58,7 @@ namespace osu.Game.Rulesets.UI
|
||||
AccuracyCounter = CreateAccuracyCounter(),
|
||||
HealthDisplay = CreateHealthDisplay(),
|
||||
Progress = CreateProgress(),
|
||||
ModsContainer = CreateModsContainer(),
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@ -64,7 +64,15 @@ namespace osu.Game.Rulesets.UI
|
||||
RelativeSizeAxes = Axes.X,
|
||||
};
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
protected override ModsContainer CreateModsContainer() => new ModsContainer
|
||||
{
|
||||
Anchor = Anchor.TopRight,
|
||||
Origin = Anchor.TopRight,
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Position = new Vector2(0, 30),
|
||||
};
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuColour colours)
|
||||
{
|
||||
ComboCounter.AccentColour = colours.BlueLighter;
|
||||
|
Reference in New Issue
Block a user