mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 23:53:51 +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;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Shapes;
|
using osu.Framework.Graphics.Shapes;
|
||||||
using osu.Framework.Input.Events;
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.Drawables;
|
using osu.Game.Beatmaps.Drawables;
|
||||||
using osu.Game.Graphics;
|
using osu.Game.Graphics;
|
||||||
@ -36,8 +35,6 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
|
|
||||||
public event Action<SelectionState> StateChanged;
|
public event Action<SelectionState> StateChanged;
|
||||||
|
|
||||||
public Action SelectionRequested;
|
|
||||||
|
|
||||||
private readonly Box selectionBox;
|
private readonly Box selectionBox;
|
||||||
|
|
||||||
private readonly Bindable<string> nameBind = new Bindable<string>();
|
private readonly Bindable<string> nameBind = new Bindable<string>();
|
||||||
@ -244,11 +241,5 @@ namespace osu.Game.Screens.Multi.Components
|
|||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
this.FadeInFromZero(transition_duration);
|
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);
|
var drawableRoom = new DrawableRoom(room);
|
||||||
|
|
||||||
drawableRoom.SelectionRequested = () => selectionRequested(drawableRoom);
|
drawableRoom.Action = () => selectionRequested(drawableRoom);
|
||||||
|
|
||||||
RoomsContainer.Add(drawableRoom);
|
RoomsContainer.Add(drawableRoom);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user