1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 06:52:55 +08:00

Add StarBreakAdditive config support

This commit is contained in:
Opelkuh 2021-09-14 00:36:01 +02:00
parent 9fd616c578
commit c4886be7e1
2 changed files with 6 additions and 2 deletions

View File

@ -16,6 +16,7 @@ using osu.Game.Rulesets.Osu.UI;
using osu.Game.Screens.Play; using osu.Game.Screens.Play;
using osu.Game.Skinning; using osu.Game.Skinning;
using osuTK; using osuTK;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Osu.Skinning.Legacy namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{ {
@ -36,6 +37,8 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
private void load(ISkinSource skin, OsuColour colours) private void load(ISkinSource skin, OsuColour colours)
{ {
var texture = skin.GetTexture("star2"); var texture = skin.GetTexture("star2");
var starBreakAdditive = skin.GetConfig<OsuSkinColour, Color4>(OsuSkinColour.StarBreakAdditive)?.Value ?? new Color4(255, 182, 193, 255);
if (texture == null) if (texture == null)
return; return;
@ -47,7 +50,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Colour = colours.PinkLighter, Colour = starBreakAdditive,
Direction = SpewDirection.None, Direction = SpewDirection.None,
Active = Active =
{ {
@ -58,7 +61,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,
Colour = colours.PinkLighter, Colour = starBreakAdditive,
Direction = SpewDirection.None, Direction = SpewDirection.None,
Active = Active =
{ {

View File

@ -9,5 +9,6 @@ namespace osu.Game.Rulesets.Osu.Skinning
SliderBorder, SliderBorder,
SliderBall, SliderBall,
SpinnerBackground, SpinnerBackground,
StarBreakAdditive,
} }
} }