Skip to content

Commit

Permalink
Add snapping option to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Falki-git committed May 26, 2023
1 parent 83e34cf commit 10f19f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions MicroEngineerProject/MicroEngineer/Managers/UI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -211,6 +210,11 @@ private void DrawSettingsFlightWindow(int id)
}
GUILayout.EndHorizontal();

GUILayout.Space(10);
GUILayout.Label("<b>Other</b>");
GUILayout.Space(-10);
settingsWindow.SnapWindows = GUILayout.Toggle(settingsWindow.SnapWindows, "Window snapping", Styles.SectionToggleStyle);

GUI.DragWindow(new Rect(0, 0, Screen.width, Screen.height));
}

Expand Down

0 comments on commit 10f19f7

Please sign in to comment.