Loader: display error in text area ; display exit button below error

This commit is contained in:
in0finite 2019-07-28 23:29:18 +02:00
parent 5c845e244e
commit c1840327d0
2 changed files with 9 additions and 3 deletions

View file

@ -454,7 +454,7 @@ namespace SanAndreasUnity.Behaviours
// display loading progress
GUILayout.BeginArea(new Rect(10, 5, 400, Screen.height));
GUILayout.BeginArea(new Rect(10, 5, 400, Screen.height - 5));
// current status
GUILayout.Label("<size=25>" + LoadingStatus + "</size>");
@ -466,7 +466,13 @@ namespace SanAndreasUnity.Behaviours
// display error
if (m_hasErrors) {
GUILayout.Space (20);
GUILayout.Label("<size=20>" + "The following exception occured during the current step:\n" + "</size>" + m_loadException.ToString ());
GUILayout.Label("<size=20>" + "The following exception occured during the current step:" + "</size>");
GUILayout.TextArea( m_loadException.ToString () );
GUILayout.Space (30);
if (GUIUtils.ButtonWithCalculatedSize("Exit", 80, 30)) {
GameManager.ExitApplication();
}
GUILayout.Space(5);
}
// display all steps

View file

@ -25,7 +25,7 @@
- Chat
- Android: set font size to 23 ; adapt UI: options (save, load, size), Utilities size, file browser size ; sliders should be larger ; camera zoom should be configurable (no need for persistence) ; use unsigned (debug) key alias ; increment build number ; test at 800x480 resolution ;
- Android: set font size to 23 ; adapt UI: options (save, load, size), Utilities size, file browser size ; sliders should be larger ; camera zoom should be configurable (no need for persistence) ; use unsigned (debug) key alias ; increment build number ; test at 800x480 resolution ; test Loader error displaying ;
- Touch input: