mirror of
https://github.com/ppy/osu.git
synced 2025-03-06 14:37:21 +08:00
Fix selection box not displaying after pasting a selection in the editor
Closes #12471.
This commit is contained in:
parent
2678089e0b
commit
e76565dbc5
@ -33,10 +33,14 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class SelectionHandler : CompositeDrawable, IKeyBindingHandler<PlatformAction>, IHasContextMenu
|
public class SelectionHandler : CompositeDrawable, IKeyBindingHandler<PlatformAction>, IHasContextMenu
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The currently selected blueprints.
|
||||||
|
/// Should be used when operations are dealing directly with the visible blueprints.
|
||||||
|
/// For more general selection operations, use EditorBeatmap.SelectedHitObjects instead.
|
||||||
|
/// </summary>
|
||||||
public IEnumerable<SelectionBlueprint> SelectedBlueprints => selectedBlueprints;
|
public IEnumerable<SelectionBlueprint> SelectedBlueprints => selectedBlueprints;
|
||||||
private readonly List<SelectionBlueprint> selectedBlueprints;
|
|
||||||
|
|
||||||
public int SelectedCount => selectedBlueprints.Count;
|
private readonly List<SelectionBlueprint> selectedBlueprints;
|
||||||
|
|
||||||
private Drawable content;
|
private Drawable content;
|
||||||
|
|
||||||
@ -295,7 +299,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void updateVisibility()
|
private void updateVisibility()
|
||||||
{
|
{
|
||||||
int count = selectedBlueprints.Count;
|
int count = EditorBeatmap.SelectedHitObjects.Count;
|
||||||
|
|
||||||
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
|
selectionDetailsText.Text = count > 0 ? count.ToString() : string.Empty;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user