1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 14:37:30 +08:00

Invert colors

This commit is contained in:
OliBomby 2023-05-31 14:33:06 +02:00
parent 114f12a790
commit 7a46b7b961
3 changed files with 6 additions and 7 deletions

View File

@ -4,10 +4,8 @@
using System.Collections.Generic;
using osu.Framework.Graphics.UserInterface;
using osu.Game.Audio;
using osu.Game.Graphics;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Types;
using osuTK.Graphics;
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
@ -24,8 +22,6 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
NodeIndex = nodeIndex;
}
protected override Color4 GetRepresentingColour(OsuColour colours) => colours.Purple;
protected override IList<HitSampleInfo> GetSamples()
{
var hasRepeats = (IHasRepeats)HitObject;

View File

@ -36,7 +36,9 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
HitObject = hitObject;
}
protected override Color4 GetRepresentingColour(OsuColour colours) => colours.Pink;
public bool AlternativeColor { get; init; }
protected override Color4 GetRepresentingColour(OsuColour colours) => AlternativeColor ? colours.Purple : colours.Pink;
[BackgroundDependencyLoader]
private void load()

View File

@ -111,7 +111,8 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.TopCentre,
X = Item is IHasRepeats ? -10 : 0
X = Item is IHasRepeats ? -10 : 0,
AlternativeColor = Item is IHasRepeats
},
});
@ -256,7 +257,7 @@ namespace osu.Game.Screens.Edit.Compose.Components.Timeline
X = (float)i / (repeats.RepeatCount + 1),
RelativePositionAxes = Axes.X,
Anchor = Anchor.BottomLeft,
Origin = Anchor.TopCentre,
Origin = Anchor.TopCentre
});
}
}