Skip to content

Commit 8ff6698

Browse files
authored
Merge pull request #6909 from thalbern/user/bethalha/fixes_for_merge_to_dev
fixed tests in ux_refactor / adjusted namespaces and file locations
2 parents 0c3cbcc + 9354bec commit 8ff6698

File tree

21 files changed

+40
-37
lines changed

21 files changed

+40
-37
lines changed

Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/BoundsControl/Scripts/BoundsControlRuntimeExample.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using Microsoft.MixedReality.Toolkit.Input;
55
using Microsoft.MixedReality.Toolkit.UI;
6-
using Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl;
6+
using Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl;
77
using Microsoft.MixedReality.Toolkit.Utilities;
88
using System.Collections;
99
using System.Text;
@@ -67,7 +67,7 @@ private IEnumerator Sequence()
6767
SetStatus("Instantiate BoundsControl");
6868
bbox = cube.AddComponent<BoundsControl>();
6969
bbox.HideElementsInInspector = false;
70-
bbox.BoundsControlActivation = UI.Experimental.BoundsControlTypes.BoundsControlActivationType.ActivateOnStart;
70+
bbox.BoundsControlActivation = Toolkit.Experimental.UI.BoundsControlTypes.BoundsControlActivationType.ActivateOnStart;
7171
var mh = cube.AddComponent<ManipulationHandler>();
7272
yield return WaitForSpeechCommand();
7373

@@ -98,15 +98,15 @@ private IEnumerator Sequence()
9898
yield return WaitForSpeechCommand();
9999

100100
SetStatus("FlattenX");
101-
bbox.FlattenAxis = UI.Experimental.BoundsControlTypes.FlattenModeType.FlattenX;
101+
bbox.FlattenAxis = Toolkit.Experimental.UI.BoundsControlTypes.FlattenModeType.FlattenX;
102102
yield return WaitForSpeechCommand();
103103

104104
SetStatus("FlattenY");
105-
bbox.FlattenAxis = UI.Experimental.BoundsControlTypes.FlattenModeType.FlattenY;
105+
bbox.FlattenAxis = Toolkit.Experimental.UI.BoundsControlTypes.FlattenModeType.FlattenY;
106106
yield return WaitForSpeechCommand();
107107

108108
SetStatus("FlattenNone");
109-
bbox.FlattenAxis = UI.Experimental.BoundsControlTypes.FlattenModeType.DoNotFlatten;
109+
bbox.FlattenAxis = Toolkit.Experimental.UI.BoundsControlTypes.FlattenModeType.DoNotFlatten;
110110
yield return WaitForSpeechCommand();
111111

112112
SetStatus("ShowWireframe false");
@@ -170,7 +170,7 @@ private IEnumerator Sequence()
170170
yield return WaitForSpeechCommand();
171171

172172
SetStatus("Wireframe shape cylinder");
173-
bbox.LinksConfiguration.WireframeShape = UI.Experimental.BoundsControlTypes.WireframeType.Cylindrical;
173+
bbox.LinksConfiguration.WireframeShape = Toolkit.Experimental.UI.BoundsControlTypes.WireframeType.Cylindrical;
174174
yield return WaitForSpeechCommand();
175175

176176
Destroy(cube);
@@ -199,7 +199,7 @@ private IEnumerator Sequence()
199199
}
200200

201201
bbox = multiRoot.AddComponent<BoundsControl>();
202-
bbox.BoundsControlActivation = UI.Experimental.BoundsControlTypes.BoundsControlActivationType.ActivateOnStart;
202+
bbox.BoundsControlActivation = Toolkit.Experimental.UI.BoundsControlTypes.BoundsControlActivationType.ActivateOnStart;
203203
bbox.HideElementsInInspector = false;
204204
bbox.LinksConfiguration.WireframeEdgeRadius = .05f;
205205
multiRoot.AddComponent<ManipulationHandler>();

Assets/MixedRealityToolkit.Examples/Experimental/Demos/UX/ObjectManipulator/Scripts/ReturnToBounds.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
22
// Licensed under the MIT License. See LICENSE in the project root for license information.
33

4-
using System.Collections;
5-
using System.Collections.Generic;
64
using UnityEngine;
75

86
namespace Microsoft.MixedReality.Toolkit.Examples.Experimental.Demos

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/BoundsControl.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,11 @@
77
using UnityEngine.Events;
88
using UnityEngine.Serialization;
99
using UnityPhysics = UnityEngine.Physics;
10-
using Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControlTypes;
10+
using Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControlTypes;
1111
using Microsoft.MixedReality.Toolkit.Utilities;
12+
using Microsoft.MixedReality.Toolkit.UI;
1213

13-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
14+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
1415
{
1516
/// <summary>
1617
/// Bounds Control allows to transform objects (rotate and scale) and draws a cube around the object to visualize

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/BoundsControlTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControlTypes
2+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControlTypes
33
{
44
/// <summary>
55
/// Enum which describes how an object's bounds control is to be flattened.

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/BoxDisplay.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControlTypes;
1+
using Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControlTypes;
22
using System;
33

44
using UnityEngine;
55
using UnityEngine.Events;
66

7-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
7+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
88
{
99
/// <summary>
1010
/// BoxDisplay can be used to attach a solid box visualization to a <see cref="BoundsControl"/>

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/Configuration/BoxDisplayConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEngine;
22
using UnityEngine.Events;
33

4-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
4+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
55
{
66
/// <summary>
77
/// Shareable configuration for the <see cref="BoxDisplay" /> of <see cref="BoundsControl"/>

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/Configuration/HandlesBaseConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using UnityEngine;
22
using UnityEngine.Events;
33

4-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
4+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
55
{
66
/// <summary>
77
/// Configuration base class for any <see cref="BoundsControl"/> handle type deriving from <see cref="HandlesBase"/>

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/Configuration/LinksConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

2-
using Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControlTypes;
2+
using Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControlTypes;
33
using UnityEngine;
44
using UnityEngine.Events;
55

6-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
6+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
77
{
88
/// <summary>
99
/// Configuration for <see cref="Links"/> used in <see cref="BoundsControl"/>

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/Configuration/RotationHandlesConfiguration.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
using Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControlTypes;
1+
using Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControlTypes;
22
using UnityEngine;
33

4-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
4+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
55
{
66
/// <summary>
77
/// Configuration for <see cref="RotationHandles"/> used in <see cref="BoundsControl"/>

Assets/MixedRealityToolkit.SDK/Experimental/Features/UX/BoundsControl/Visuals/Configuration/ScaleHandlesConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
using UnityEngine;
33

4-
namespace Microsoft.MixedReality.Toolkit.UI.Experimental.BoundsControl
4+
namespace Microsoft.MixedReality.Toolkit.Experimental.UI.BoundsControl
55
{
66
/// <summary>
77
/// Configuration for <see cref="ScaleHandles"/> used in <see cref="BoundsControl"/>

0 commit comments

Comments
 (0)