Make selectionLayer handle input below object overlays

This commit is contained in:
smoogipoo 2018-02-22 14:34:37 +09:00
parent 6cc54a464c
commit 45c579630d

View File

@ -58,8 +58,8 @@ namespace osu.Game.Rulesets.Edit
return container;
}
HitObjectOverlayLayer hitObjectOverlayLayer;
SelectionLayer selectionLayer;
HitObjectOverlayLayer hitObjectOverlayLayer = CreateHitObjectOverlayLayer();
SelectionLayer selectionLayer = new SelectionLayer(rulesetContainer.Playfield);
RadioButtonCollection toolboxCollection;
InternalChild = new GridContainer
@ -97,8 +97,9 @@ namespace osu.Game.Rulesets.Edit
rulesetContainer,
createLayerContainerWithContent
(
hitObjectOverlayLayer = CreateHitObjectOverlayLayer(),
selectionLayer = new SelectionLayer(rulesetContainer.Playfield)
selectionLayer, // Below object overlays for input
hitObjectOverlayLayer,
selectionLayer.CreateProxy() // Proxy above object overlays for selections
)
}
}