mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 17:17:26 +08:00
Invert colors
This commit is contained in:
parent
114f12a790
commit
7a46b7b961
@ -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;
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user