Skip to content

Commit f6fc26b

Browse files
author
Malah
committed
corrected text position for small resolution, close #5
1 parent 987c30e commit f6fc26b

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

QuickStart/QS_Loading.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Rect RectSettings {
4343

4444
Rect RectGUI {
4545
get {
46-
return new Rect (0, Screen.height - 50, Screen.width, 50);
46+
return new Rect (0, Screen.width < 1440 ? 0 : Screen.height - 50, Screen.width, 100);
4747
}
4848
}
4949

@@ -159,7 +159,13 @@ void OnGUI() {
159159
QSettings.Instance.editorFacility = (int)EditorFacility.VAB;
160160
}
161161
}
162-
GUILayout.FlexibleSpace ();
162+
if (Screen.width < 1440) {
163+
GUILayout.EndHorizontal ();
164+
GUILayout.BeginHorizontal ();
165+
}
166+
else {
167+
GUILayout.FlexibleSpace ();
168+
}
163169
if (GUILayout.Toggle (QSettings.Instance.editorFacility == (int)EditorFacility.SPH && QSettings.Instance.gameScene == (int)GameScenes.EDITOR, QLang.translate ("Space Plane Hangar"), GUILayout.Width (250))) {
164170
if (QSettings.Instance.gameScene != (int)GameScenes.EDITOR || QSettings.Instance.editorFacility != (int)EditorFacility.SPH) {
165171
QSettings.Instance.gameScene = (int)GameScenes.EDITOR;
@@ -174,7 +180,7 @@ void OnGUI() {
174180
}
175181
GUILayout.FlexibleSpace ();
176182
GUI.enabled = !string.IsNullOrEmpty (QuickStart_Persistent.vesselID);
177-
if (GUILayout.Toggle (QSettings.Instance.gameScene == (int)GameScenes.FLIGHT, (!string.IsNullOrEmpty (QSaveGame.vesselName) ? string.Format("{0}: {1}({2})", QLang.translate("Last Vessel"), QSaveGame.vesselName, QSaveGame.vesselType) : QLang.translate ("No vessel found")), GUILayout.Width (300))) {
183+
if (GUILayout.Toggle (QSettings.Instance.gameScene == (int)GameScenes.FLIGHT, (!string.IsNullOrEmpty (QSaveGame.vesselName) ? string.Format("{0}: {1}({2})", QLang.translate("Last Vessel"), QSaveGame.vesselName, QSaveGame.vesselType) : QLang.translate ("No vessel found")), GUILayout.Width (250))) {
178184
if (QSettings.Instance.gameScene != (int)GameScenes.FLIGHT) {
179185
QSettings.Instance.gameScene = (int)GameScenes.FLIGHT;
180186
}

0 commit comments

Comments
 (0)