summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-02-24 14:46:15 +0000
committersmatz <smatz@openttd.org>2010-02-24 14:46:15 +0000
commitf051066bc451479a0c2ff44e2554941628a62f6a (patch)
tree239197109c12b15a24e9ae8ab70a7549e34d4a8b /src/gui.h
parentc1e2bc90cd3751dfa316519cfe2f558aa2697b2c (diff)
downloadopenttd-f051066bc451479a0c2ff44e2554941628a62f6a.tar.xz
(svn r19224) -Codechange: change parameters passed to ShowErrorMessage() a bit
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui.h b/src/gui.h
index 11e501f3d..f6a0e14df 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -52,7 +52,16 @@ void ShowIndustryDirectory();
void ShowSubsidiesList();
void ShowEstimatedCostOrIncome(Money cost, int x, int y);
-void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, int x, int y, bool no_timeout = false);
+
+/** Message severity/type */
+enum WarningLevel {
+ WL_INFO, ///< Used for DoCommand-like (and some nonfatal AI GUI) errors/information
+ WL_WARNING, ///< Other information
+ WL_ERROR, ///< Errors (eg. saving/loading failed)
+ WL_CRITICAL, ///< Critical errors, the MessageBox is shown in all cases
+};
+
+void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);