Fix selections not working anymore

This commit is contained in:
smoogipoo
2018-12-04 15:26:06 +09:00
parent d8739d9dee
commit a02e025f06
2 changed files with 34 additions and 21 deletions

View File

@ -34,6 +34,8 @@ namespace osu.Game.Screens.Multi.Components
private const float side_strip_width = 5;
private const float cover_width = 145;
public event Action<SelectionState> StateChanged;
public Action SelectionRequested;
private readonly Box selectionBox;
@ -78,8 +80,6 @@ namespace osu.Game.Screens.Multi.Components
}
}
public event Action<SelectionState> StateChanged;
public DrawableRoom(Room room)
{
Room = room;
@ -239,7 +239,7 @@ namespace osu.Game.Screens.Multi.Components
protected override bool OnClick(ClickEvent e)
{
State = SelectionState.Selected;
SelectionRequested?.Invoke();
return true;
}
}