mirror of
https://github.com/osukey/osukey.git
synced 2025-08-06 16:13:57 +09:00
Remove spotlights glow
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user