mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
Fix selecting underneath selected blueprints
This commit is contained in:
parent
621f4387c9
commit
0db34a47f8
@ -254,6 +254,21 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
{
|
{
|
||||||
Debug.Assert(!clickSelectionBegan);
|
Debug.Assert(!clickSelectionBegan);
|
||||||
|
|
||||||
|
bool hoveringSelected = false;
|
||||||
|
|
||||||
|
// Make sure any already-selected blueprints aren't being hovered over
|
||||||
|
foreach (SelectionBlueprint selected in selectionHandler.SelectedBlueprints)
|
||||||
|
{
|
||||||
|
if (selected.IsHovered)
|
||||||
|
{
|
||||||
|
hoveringSelected = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Attempt a new selection at the mouse position
|
||||||
|
if (!hoveringSelected)
|
||||||
|
{
|
||||||
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)
|
foreach (SelectionBlueprint blueprint in selectionBlueprints.AliveBlueprints)
|
||||||
{
|
{
|
||||||
if (blueprint.IsHovered)
|
if (blueprint.IsHovered)
|
||||||
@ -264,6 +279,7 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Finishes the current blueprint selection.
|
/// Finishes the current blueprint selection.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user