diff options
author | Didac Perez Parera <perez.didac@gmail.com> | 2021-04-05 13:24:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-05 22:24:03 +0200 |
commit | 43c465e8f4aa2585a8454ae656513e4c8555aa75 (patch) | |
tree | 4c6c430e01abb5b0f19370cdb8d79239d8ce90d7 /src/window_type.h | |
parent | 130a052ed5a364c1b9c4659b44fe2620bdd569e4 (diff) | |
download | openttd-43c465e8f4aa2585a8454ae656513e4c8555aa75.tar.xz |
Change: Disable NewGRF window apply button if no change was made (#8934)
Diffstat (limited to 'src/window_type.h')
-rw-r--r-- | src/window_type.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/window_type.h b/src/window_type.h index 86dcc6fb3..e4b08e6e5 100644 --- a/src/window_type.h +++ b/src/window_type.h @@ -703,9 +703,11 @@ enum WindowClass { /** 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. + GOID_NEWGRF_RESCANNED, ///< NewGRFs were just rescanned. + GOID_NEWGRF_CURRENT_LOADED, ///< The current list of active NewGRF has been loaded. + GOID_NEWGRF_LIST_EDITED, ///< List of active NewGRFs is being edited. + GOID_NEWGRF_CHANGES_MADE, ///< Changes have been made to a given NewGRF either through the palette or its parameters. + GOID_NEWGRF_CHANGES_APPLIED, ///< The active NewGRF list changes have been applied. }; struct Window; |