mirror of
https://github.com/ppy/osu.git
synced 2025-02-07 19:53:22 +08:00
Add osu!mania specifications for health bar display
This commit is contained in:
parent
c34827a4ed
commit
8dca69e3f9
@ -9,6 +9,7 @@ using System.Linq;
|
||||
using osu.Framework.Audio.Sample;
|
||||
using osu.Framework.Bindables;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Game.Audio;
|
||||
using osu.Game.Beatmaps;
|
||||
@ -16,6 +17,7 @@ using osu.Game.Rulesets.Mania.Beatmaps;
|
||||
using osu.Game.Rulesets.Objects.Legacy;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using osu.Game.Skinning;
|
||||
using osuTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
||||
{
|
||||
@ -106,6 +108,20 @@ namespace osu.Game.Rulesets.Mania.Skinning.Legacy
|
||||
{
|
||||
new LegacyManiaComboCounter(),
|
||||
};
|
||||
|
||||
case GlobalSkinnableContainers.Playfield:
|
||||
return new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Child = new LegacyHealthDisplay
|
||||
{
|
||||
Rotation = -90f,
|
||||
Anchor = Anchor.BottomRight,
|
||||
Origin = Anchor.TopLeft,
|
||||
X = 1,
|
||||
Scale = new Vector2(0.7f),
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user