Let selection container handle manual selection changes

This commit is contained in:
Derrick Timmermans
2021-07-06 13:24:18 +02:00
parent c5a0672277
commit 07d54d261a
3 changed files with 31 additions and 24 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Humanizer;
using osu.Framework.Allocation;
using osu.Framework.Extensions.Color4Extensions;
@ -184,8 +183,6 @@ namespace osu.Game.Screens.Play
}
};
button.StateChanged += selected => buttonSelectionChanged(button, selected);
InternalButtons.Add(button);
}
@ -216,15 +213,6 @@ namespace osu.Game.Screens.Play
public void OnReleased(GlobalAction action)
{
}
private void buttonSelectionChanged(DialogButton button, SelectionState state)
{
if (state == SelectionState.NotSelected)
InternalButtons.Deselect();
else
InternalButtons.Select(button);
}
private void updateRetryCount()
{
// "You've retried 1,065 times in this session"