Skip to content

Commit 41dc18f

Browse files
committed
cleanup
1 parent 9c7b9ed commit 41dc18f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Assets/MicroEngineer/Code/UI/FlightSceneController.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ public void HandleSnapping(UIDocument draggedWindow)
207207
if (distance < _snapDistance && distance != 0)
208208
{
209209
draggedWindow.rootVisualElement[0].transform.position
210-
// = new Vector3(otherRect.xMin, draggedWindow.rootVisualElement[0].worldBound.y);
211210
= new Vector3(otherRect.xMin - draggedWindow.rootVisualElement[0].worldBound.xMin, 0);
212211

213212
break;
@@ -218,7 +217,6 @@ public void HandleSnapping(UIDocument draggedWindow)
218217
if (distance < _snapDistance && distance != 0)
219218
{
220219
draggedWindow.rootVisualElement[0].transform.position
221-
// = new Vector3(otherRect.xMin - draggedWindow.rootVisualElement[0].worldBound.width, draggedWindow.rootVisualElement[0].worldBound.y);
222220
= new Vector3(otherRect.xMin - draggedWindow.rootVisualElement[0].worldBound.width - draggedWindow.rootVisualElement[0].worldBound.xMin, 0);
223221

224222
break;
@@ -229,7 +227,6 @@ public void HandleSnapping(UIDocument draggedWindow)
229227
if (distance < _snapDistance && distance != 0)
230228
{
231229
draggedWindow.rootVisualElement[0].transform.position
232-
// = new Vector3(otherRect.xMax, draggedWindow.rootVisualElement[0].worldBound.y);
233230
= new Vector3(otherRect.xMax - draggedWindow.rootVisualElement[0].worldBound.xMin, 0);
234231

235232
break;
@@ -241,7 +238,6 @@ public void HandleSnapping(UIDocument draggedWindow)
241238
if (distance < _snapDistance && distance != 0)
242239
{
243240
draggedWindow.rootVisualElement[0].transform.position
244-
// = new Vector3(otherRect.xMax - draggedWindow.rootVisualElement[0].worldBound.width, draggedWindow.rootVisualElement[0].worldBound.y);
245241
= new Vector3(otherRect.xMax - draggedWindow.rootVisualElement[0].worldBound.width - draggedWindow.rootVisualElement[0].worldBound.xMin, 0);
246242

247243
break;
@@ -252,7 +248,6 @@ public void HandleSnapping(UIDocument draggedWindow)
252248
if (distance < _snapDistance && distance != 0)
253249
{
254250
draggedWindow.rootVisualElement[0].transform.position
255-
// = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMin);
256251
= new Vector3(0, otherRect.yMin - draggedWindow.rootVisualElement[0].worldBound.yMin);
257252

258253
break;
@@ -263,7 +258,6 @@ public void HandleSnapping(UIDocument draggedWindow)
263258
if (distance < _snapDistance && distance != 0)
264259
{
265260
draggedWindow.rootVisualElement[0].transform.position
266-
// = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMin - draggedWindow.rootVisualElement[0].worldBound.height);
267261
= new Vector3(0, otherRect.yMin - draggedWindow.rootVisualElement[0].worldBound.height - draggedWindow.rootVisualElement[0].worldBound.yMin);
268262

269263
break;
@@ -274,7 +268,6 @@ public void HandleSnapping(UIDocument draggedWindow)
274268
if (distance < _snapDistance && distance != 0)
275269
{
276270
draggedWindow.rootVisualElement[0].transform.position
277-
// = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMax);
278271
= new Vector3(0, otherRect.yMax - draggedWindow.rootVisualElement[0].worldBound.yMin);
279272

280273
break;
@@ -285,7 +278,6 @@ public void HandleSnapping(UIDocument draggedWindow)
285278
if (distance < _snapDistance && distance != 0)
286279
{
287280
draggedWindow.rootVisualElement[0].transform.position
288-
// = new Vector3(draggedWindow.rootVisualElement[0].worldBound.x, otherRect.yMax - draggedWindow.rootVisualElement[0].worldBound.height);
289281
= new Vector3(0, otherRect.yMax - draggedWindow.rootVisualElement[0].worldBound.height - draggedWindow.rootVisualElement[0].worldBound.yMin);
290282
}
291283
}

0 commit comments

Comments
 (0)