summaryrefslogtreecommitdiff
path: root/src/window_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-02 12:49:44 +0000
committerfrosch <frosch@openttd.org>2011-07-02 12:49:44 +0000
commit1688470eb9b511990089eab1eec9f0ba3104d4c5 (patch)
tree6dc4dd8533157db6feb482607001c14be3dd733c /src/window_type.h
parent56a41a8852c6bad2119100d0758ca297e61c80c1 (diff)
downloadopenttd-1688470eb9b511990089eab1eec9f0ba3104d4c5.tar.xz
(svn r22617) -Codechange: Add GameOptionsInvalidationData enum for data values for Window::OnInvalidateData() of windows with class WC_GAME_OPTIONS.
Diffstat (limited to 'src/window_type.h')
-rw-r--r--src/window_type.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window_type.h b/src/window_type.h
index b456b9f4b..fabcf2e62 100644
--- a/src/window_type.h
+++ b/src/window_type.h
@@ -115,6 +115,16 @@ enum WindowClass {
WC_INVALID = 0xFFFF
};
+/**
+ * Data value for #Window::OnInvalidateData() of windows with class #WC_GAME_OPTIONS.
+ */
+enum GameOptionsInvalidationData {
+ GOID_DEFAULT = 0,
+ GOID_NEWGRF_RESCANNED, ///< NewGRFs were just rescanned.
+ GOID_NEWGRF_LIST_EDITED, ///< List of active NewGRFs is being edited.
+ GOID_NEWGRF_PRESET_LOADED, ///< A NewGRF preset was picked.
+};
+
struct Window;
/** Number to differentiate different windows of the same class */