Add option to move all selected UI Controls while holding Shift key
This commit is contained in:
@@ -253,7 +253,11 @@ namespace FlaxEditor
|
|||||||
{
|
{
|
||||||
// Select node (with additive mode)
|
// Select node (with additive mode)
|
||||||
var selection = new List<SceneGraphNode>();
|
var selection = new List<SceneGraphNode>();
|
||||||
if (Root.GetKey(KeyboardKeys.Control))
|
if (Root.GetKey(KeyboardKeys.Shift) && transformGizmo.Selection.Contains(uiControlNode))
|
||||||
|
{
|
||||||
|
// Move whole selection
|
||||||
|
}
|
||||||
|
else if (Root.GetKey(KeyboardKeys.Control))
|
||||||
{
|
{
|
||||||
// Add/remove from selection
|
// Add/remove from selection
|
||||||
selection.AddRange(transformGizmo.Selection);
|
selection.AddRange(transformGizmo.Selection);
|
||||||
@@ -261,13 +265,14 @@ namespace FlaxEditor
|
|||||||
selection.Remove(uiControlNode);
|
selection.Remove(uiControlNode);
|
||||||
else
|
else
|
||||||
selection.Add(uiControlNode);
|
selection.Add(uiControlNode);
|
||||||
|
owner.Select(selection);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Select
|
// Select
|
||||||
selection.Add(uiControlNode);
|
selection.Add(uiControlNode);
|
||||||
|
owner.Select(selection);
|
||||||
}
|
}
|
||||||
owner.Select(selection);
|
|
||||||
|
|
||||||
// Initialize control movement
|
// Initialize control movement
|
||||||
_mouseMovesControl = true;
|
_mouseMovesControl = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user