summaryrefslogtreecommitdiff
path: root/src/widgets
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-13 12:26:06 +0100
committerPatric Stout <github@truebrain.nl>2021-03-14 11:04:14 +0100
commit22a9d921efa80f09b31afd860dae7ccd569cebf8 (patch)
tree49a773ca2e910848e7c4021cc327a2c1c07bc37f /src/widgets
parent13011e00c6330e6d745f319766574d2cd78a1162 (diff)
downloadopenttd-22a9d921efa80f09b31afd860dae7ccd569cebf8.tar.xz
Fix: if bootstrap failed, it could end with an empty screen instead of error
There are various of ways bootstrap can fail: - Failing network connection - Incomplete download - No write permissions - Disk full - (others I forgot) They all result in a screen with no windows. To ensure we at least always show something when anything bad happens, if the bootstrap is not successful, show a screen what the next step for the human should be.
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/bootstrap_widget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/widgets/bootstrap_widget.h b/src/widgets/bootstrap_widget.h
index 4870f62d5..16a36cc5b 100644
--- a/src/widgets/bootstrap_widget.h
+++ b/src/widgets/bootstrap_widget.h
@@ -15,6 +15,13 @@ enum BootstrapBackgroundWidgets {
WID_BB_BACKGROUND, ///< Background of the window.
};
+/** Widgets of the #BootstrapErrmsgWindow class. */
+enum BootstrapErrorMessageWidgets {
+ WID_BEM_CAPTION, ///< Caption of the window.
+ WID_BEM_MESSAGE, ///< Error message.
+ WID_BEM_QUIT, ///< Quit button.
+};
+
/** Widgets of the #BootstrapContentDownloadStatusWindow class. */
enum BootstrapAskForDownloadWidgets {
WID_BAFD_QUESTION, ///< The question whether to download.