2019-01-24 16:43:03 +08:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
|
#nullable disable
|
|
|
|
|
|
2022-06-03 16:00:00 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2017-10-12 15:10:14 +08:00
|
|
|
|
using osu.Game.Graphics.UserInterface;
|
2022-06-03 16:00:00 +08:00
|
|
|
|
using osu.Game.Overlays;
|
2022-06-03 10:03:22 +08:00
|
|
|
|
using osu.Game.Screens.Edit.Timing;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2018-11-06 17:28:22 +08:00
|
|
|
|
namespace osu.Game.Screens.Edit.Compose.Components.Timeline
|
2017-10-12 15:10:14 +08:00
|
|
|
|
{
|
2022-06-03 16:00:00 +08:00
|
|
|
|
public partial class TimelineButton : IconButton
|
2017-10-12 15:10:14 +08:00
|
|
|
|
{
|
2022-06-03 16:00:00 +08:00
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
|
private void load(OverlayColourProvider colourProvider)
|
2017-10-12 15:10:14 +08:00
|
|
|
|
{
|
2022-06-03 16:00:00 +08:00
|
|
|
|
// These are using colourProvider but don't match the design.
|
|
|
|
|
// Just something to fit until someone implements the updated design.
|
|
|
|
|
IconColour = colourProvider.Background1;
|
|
|
|
|
IconHoverColour = colourProvider.Content2;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-03 16:00:00 +08:00
|
|
|
|
HoverColour = colourProvider.Background1;
|
|
|
|
|
FlashColour = colourProvider.Content2;
|
2018-04-13 17:19:50 +08:00
|
|
|
|
|
2022-06-03 16:00:00 +08:00
|
|
|
|
Add(new RepeatingButtonBehaviour(this));
|
2017-10-12 15:10:14 +08:00
|
|
|
|
}
|
2018-07-13 15:28:18 +08:00
|
|
|
|
|
2022-06-03 16:00:00 +08:00
|
|
|
|
protected override HoverSounds CreateHoverSounds(HoverSampleSet sampleSet) => new HoverSounds(sampleSet);
|
2017-10-12 15:10:14 +08:00
|
|
|
|
}
|
|
|
|
|
}
|