mirror of https://github.com/ppy/osu
Show button when selected or preselected
This commit is contained in:
parent
32e3f5d091
commit
8a3c8a6185
|
@ -231,7 +231,13 @@ private void collectionChanged()
|
||||||
updateButtonVisibility();
|
updateButtonVisibility();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateButtonVisibility() => addOrRemoveButton.Alpha = IsHovered || beatmapInCollection ? 1 : 0;
|
protected override void OnSelectChange()
|
||||||
|
{
|
||||||
|
base.OnSelectChange();
|
||||||
|
updateButtonVisibility();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateButtonVisibility() => addOrRemoveButton.Alpha = IsHovered || IsPreSelected || beatmapInCollection ? 1 : 0;
|
||||||
|
|
||||||
private void addOrRemove()
|
private void addOrRemove()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue