diff options
author | belugas <belugas@openttd.org> | 2007-11-10 01:17:15 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-11-10 01:17:15 +0000 |
commit | f26a591e6c4d561fdd2cb129e4c1a4750739f8d5 (patch) | |
tree | 07b6a8f97a15f768d33fc0b7a3405373f3745b3b /src/settings.cpp | |
parent | 466193c5742761d5e45ca5b4e34e3cab8e62affc (diff) | |
download | openttd-f26a591e6c4d561fdd2cb129e4c1a4750739f8d5.tar.xz |
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 4e35b1954..d268ff1df 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -49,6 +49,7 @@ #include "fontcache.h" #endif #include "spritecache.h" +#include "transparency.h" /** The patch values that are used for new games and/or modified in config file */ Patches _patches_newgame; @@ -1275,6 +1276,7 @@ static const SettingDescGlobVarList _misc_settings[] = { #endif SDTG_VAR("sprite_cache_size",SLE_UINT, S, 0, _sprite_cache_size, 4, 1, 64, 0, STR_NULL, NULL), SDTG_VAR("player_face", SLE_UINT32, S, 0, _player_face, 0,0,0xFFFFFFFF,0, STR_NULL, NULL), + SDTG_VAR("transparency_options", SLE_UINT8, S, 0, _transparency_opt, 0, 0,0xFF,0, STR_NULL, NULL), SDTG_END() }; |