From f55fdfb7c42b2e2e39b165fd17f7671e14516303 Mon Sep 17 00:00:00 2001 From: belugas Date: Sat, 10 Nov 2007 01:17:15 +0000 Subject: (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. --- src/settings.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/settings.cpp') 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() }; -- cgit v1.2.3-54-g00ecf