mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 12:53:11 +08:00
Fix post-merge issues
This commit is contained in:
parent
69e7ee0f48
commit
1c899e4402
@ -1,8 +1,6 @@
|
||||
// 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.
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Game.Graphics.UserInterface.PageSelector;
|
||||
@ -11,14 +9,6 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestScenePageSelector : OsuTestScene
|
||||
{
|
||||
public override IReadOnlyList<Type> RequiredTypes => new[]
|
||||
{
|
||||
typeof(PageSelector),
|
||||
typeof(DrawablePage),
|
||||
typeof(PageSelectorButton),
|
||||
typeof(PageSelectorItem)
|
||||
};
|
||||
|
||||
private readonly PageSelector pageSelector;
|
||||
private readonly DrawablePage drawablePage;
|
||||
|
||||
|
@ -57,7 +57,7 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
private void onSelectedChanged(ValueChangedEvent<bool> selected)
|
||||
{
|
||||
Background.FadeTo(selected.NewValue ? 1 : 0, DURATION, Easing.OutQuint);
|
||||
text.FadeColour(selected.NewValue ? Colours.GreySeafoamDarker : Colours.Lime, DURATION, Easing.OutQuint);
|
||||
text.FadeColour(selected.NewValue ? Colours.GreySeaFoamDarker : Colours.Lime, DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
protected override void UpdateHoverState()
|
||||
|
@ -21,6 +21,7 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
public PageSelector()
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
||||
|
||||
InternalChild = new FillFlowContainer
|
||||
{
|
||||
AutoSizeAxes = Axes.Both,
|
||||
|
@ -63,7 +63,7 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
Background.Colour = Colours.GreySeafoamDark;
|
||||
Background.Colour = Colours.GreySeaFoamDark;
|
||||
name.Colour = icon.Colour = Colours.Lime;
|
||||
}
|
||||
|
||||
@ -73,6 +73,6 @@ namespace osu.Game.Graphics.UserInterface.PageSelector
|
||||
Enabled.BindValueChanged(enabled => fadeBox.FadeTo(enabled.NewValue ? 0 : 1, DURATION), true);
|
||||
}
|
||||
|
||||
protected override void UpdateHoverState() => Background.FadeColour(IsHovered ? Colours.GreySeafoam : Colours.GreySeafoamDark, DURATION, Easing.OutQuint);
|
||||
protected override void UpdateHoverState() => Background.FadeColour(IsHovered ? Colours.GreySeaFoam : Colours.GreySeaFoamDark, DURATION, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user