Remove spotlights glow

This commit is contained in:
smoogipoo
2021-07-14 16:51:20 +09:00
parent 0e89bafd17
commit e0c61c24b1

View File

@ -11,7 +11,6 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Colour; using osu.Framework.Graphics.Colour;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Cursor; using osu.Framework.Graphics.Cursor;
using osu.Framework.Graphics.Effects;
using osu.Framework.Graphics.Shapes; using osu.Framework.Graphics.Shapes;
using osu.Framework.Graphics.UserInterface; using osu.Framework.Graphics.UserInterface;
using osu.Game.Beatmaps; using osu.Game.Beatmaps;
@ -109,7 +108,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
private RecentParticipantsList recentParticipantsList; private RecentParticipantsList recentParticipantsList;
private RoomSpecialCategoryPill specialCategoryPill; private RoomSpecialCategoryPill specialCategoryPill;
private Drawable spotlightGlow;
public bool FilteringActive { get; set; } public bool FilteringActive { get; set; }
@ -153,7 +151,7 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
new BufferedContainer new BufferedContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
Children = new[] Children = new Drawable[]
{ {
new Box new Box
{ {
@ -188,12 +186,6 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
} }
} }
}, },
spotlightGlow = new Box
{
RelativeSizeAxes = Axes.Y,
Width = 50,
Colour = ColourInfo.GradientHorizontal(colours.Pink.Opacity(0.5f), colours.Pink.Opacity(0))
}
}, },
}, },
new Container new Container
@ -336,16 +328,11 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
roomCategory.BindTo(Room.Category); roomCategory.BindTo(Room.Category);
roomCategory.BindValueChanged(c => roomCategory.BindValueChanged(c =>
{ {
// Todo: Tournament category...
if (c.NewValue == RoomCategory.Spotlight) if (c.NewValue == RoomCategory.Spotlight)
{
specialCategoryPill.Show(); specialCategoryPill.Show();
spotlightGlow.Show();
}
else else
{
specialCategoryPill.Hide(); specialCategoryPill.Hide();
spotlightGlow.Hide();
}
}, true); }, true);
} }