mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Remove custom action from DrawableRoom
This commit is contained in:
@ -10,7 +10,6 @@ using osu.Framework.Extensions.Color4Extensions;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Framework.Input.Events;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.Drawables;
|
||||
using osu.Game.Graphics;
|
||||
@ -36,8 +35,6 @@ namespace osu.Game.Screens.Multi.Components
|
||||
|
||||
public event Action<SelectionState> StateChanged;
|
||||
|
||||
public Action SelectionRequested;
|
||||
|
||||
private readonly Box selectionBox;
|
||||
|
||||
private readonly Bindable<string> nameBind = new Bindable<string>();
|
||||
@ -244,11 +241,5 @@ namespace osu.Game.Screens.Multi.Components
|
||||
base.LoadComplete();
|
||||
this.FadeInFromZero(transition_duration);
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
SelectionRequested?.Invoke();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -117,7 +117,7 @@ namespace osu.Game.Screens.Multi.Screens.Lounge
|
||||
{
|
||||
var drawableRoom = new DrawableRoom(room);
|
||||
|
||||
drawableRoom.SelectionRequested = () => selectionRequested(drawableRoom);
|
||||
drawableRoom.Action = () => selectionRequested(drawableRoom);
|
||||
|
||||
RoomsContainer.Add(drawableRoom);
|
||||
|
||||
|
Reference in New Issue
Block a user