mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 20:57:28 +09:00
Ensure selected blueprints are given selection priority
This commit is contained in:
parent
8e0536e1e2
commit
dd48b68f8a
@ -338,7 +338,8 @@ namespace osu.Game.Screens.Edit.Compose.Components
|
|||||||
private bool beginClickSelection(MouseButtonEvent e)
|
private bool beginClickSelection(MouseButtonEvent e)
|
||||||
{
|
{
|
||||||
// Iterate from the top of the input stack (blueprints closest to the front of the screen first).
|
// Iterate from the top of the input stack (blueprints closest to the front of the screen first).
|
||||||
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.Reverse())
|
// Priority is given to already-selected blueprints.
|
||||||
|
foreach (SelectionBlueprint blueprint in SelectionBlueprints.AliveChildren.Reverse().OrderByDescending(b => b.IsSelected))
|
||||||
{
|
{
|
||||||
if (!blueprint.IsHovered) continue;
|
if (!blueprint.IsHovered) continue;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user