From 10f19f7bf6488f1aa5b661136cbf3323c9809de2 Mon Sep 17 00:00:00 2001 From: Falki-git <72734856+Falki-git@users.noreply.github.com> Date: Fri, 26 May 2023 15:36:55 +0200 Subject: [PATCH] Add snapping option to settings --- MicroEngineerProject/MicroEngineer/Managers/UI.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/MicroEngineerProject/MicroEngineer/Managers/UI.cs b/MicroEngineerProject/MicroEngineer/Managers/UI.cs index af38881..f5dc88c 100644 --- a/MicroEngineerProject/MicroEngineer/Managers/UI.cs +++ b/MicroEngineerProject/MicroEngineer/Managers/UI.cs @@ -176,8 +176,7 @@ private void DrawSettingsFlightWindow(int id) { Manager.Instance.SaveLayout(); _showGuiSettingsFlight = false; - } - GUILayout.Space(5); + } if (GUILayout.Button("LOAD LAYOUT", Styles.NormalBtnStyle)) Manager.Instance.LoadLayout(); if (GUILayout.Button("RESET LAYOUT", Styles.NormalBtnStyle)) @@ -211,6 +210,11 @@ private void DrawSettingsFlightWindow(int id) } GUILayout.EndHorizontal(); + GUILayout.Space(10); + GUILayout.Label("Other"); + GUILayout.Space(-10); + settingsWindow.SnapWindows = GUILayout.Toggle(settingsWindow.SnapWindows, "Window snapping", Styles.SectionToggleStyle); + GUI.DragWindow(new Rect(0, 0, Screen.width, Screen.height)); }