1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 03:42:58 +08:00

Fixed Warnings

This commit is contained in:
Kelvin 2017-03-14 20:42:02 -07:00
parent 18afd8eabe
commit 4353c9dc3d
4 changed files with 11 additions and 19 deletions

View File

@ -49,8 +49,6 @@ namespace osu.Game.Screens.Select
}
}
private TabControl<GroupMode> groupTabs;
private TabControl<SortMode> sortTabs;
private OsuSpriteText spriteText;
public Action Exit;
@ -59,6 +57,9 @@ namespace osu.Game.Screens.Select
public FilterControl(float height)
{
TabControl<SortMode> sortTabs;
TabControl<GroupMode> groupTabs;
Children = new Drawable[]
{
new Box

View File

@ -12,12 +12,10 @@ namespace osu.Game.Screens.Select.Tab
{
protected override string Label { get; set; }
private TextAwesome ellipses;
public FilterTabDropDownHeader() {
Foreground.Children = new Drawable[]
{
ellipses = new TextAwesome
new TextAwesome
{
Icon = FontAwesome.fa_ellipsis_h,
TextSize = 14,

View File

@ -44,19 +44,12 @@ namespace osu.Game.Screens.Select.Tab
protected override void UpdateContentHeight()
{
if (State == DropDownMenuState.Opened)
ContentContainer.ResizeTo(new Vector2(1, ContentHeight), 300, EasingTypes.OutQuint);
else
ContentContainer.ResizeTo(new Vector2(1, 0), 300, EasingTypes.OutQuint);
ContentContainer.ResizeTo(new Vector2(1, State == DropDownMenuState.Opened ? ContentHeight : 0), 300, EasingTypes.OutQuint);
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
if (typeof(T) == typeof(SortMode))
Header.Colour = colours.GreenLight;
else
Header.Colour = colours.Blue;
private void load(OsuColour colours) {
Header.Colour = typeof(T) == typeof(SortMode) ? colours.GreenLight : colours.Blue;
}
}
}

View File

@ -39,13 +39,13 @@ namespace osu.Game.Screens.Select.Tab
if (typeof(T) == typeof(SortMode))
{
BackgroundColourHover = new Color4(163, 196, 36, 255);
BackgroundColourSelected = new Color4(163, 196, 36, 255);
BackgroundColourHover = colours.GreenLight;
BackgroundColourSelected = colours.GreenLight;
}
else
{
BackgroundColourHover = new Color4(124, 200, 253, 255);
BackgroundColourSelected = new Color4(124, 200, 253, 255);
BackgroundColourHover = colours.Blue;
BackgroundColourSelected = colours.Blue;
}
}
}