Skip to content
This repository was archived by the owner on Feb 28, 2025. It is now read-only.

Commit 10f19f7

Browse files
committed
Add snapping option to settings
1 parent 83e34cf commit 10f19f7

File tree

1 file changed

+6
-2
lines changed
  • MicroEngineerProject/MicroEngineer/Managers

1 file changed

+6
-2
lines changed

MicroEngineerProject/MicroEngineer/Managers/UI.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ private void DrawSettingsFlightWindow(int id)
176176
{
177177
Manager.Instance.SaveLayout();
178178
_showGuiSettingsFlight = false;
179-
}
180-
GUILayout.Space(5);
179+
}
181180
if (GUILayout.Button("LOAD LAYOUT", Styles.NormalBtnStyle))
182181
Manager.Instance.LoadLayout();
183182
if (GUILayout.Button("RESET LAYOUT", Styles.NormalBtnStyle))
@@ -211,6 +210,11 @@ private void DrawSettingsFlightWindow(int id)
211210
}
212211
GUILayout.EndHorizontal();
213212

213+
GUILayout.Space(10);
214+
GUILayout.Label("<b>Other</b>");
215+
GUILayout.Space(-10);
216+
settingsWindow.SnapWindows = GUILayout.Toggle(settingsWindow.SnapWindows, "Window snapping", Styles.SectionToggleStyle);
217+
214218
GUI.DragWindow(new Rect(0, 0, Screen.width, Screen.height));
215219
}
216220

0 commit comments

Comments
 (0)