(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.
This commit is contained in:
belugas
2007-11-10 01:17:15 +00:00
parent 3a84801f55
commit f55fdfb7c4
25 changed files with 165 additions and 102 deletions

View File

@@ -43,6 +43,7 @@
#include "misc/autoptr.hpp"
#include "autoslope.h"
#include "waypoint.h"
#include "transparency.h"
/* Initialize the town-pool */
DEFINE_OLD_POOL_GENERIC(Town, Town)
@@ -183,10 +184,10 @@ static void DrawTile_Town(TileInfo *ti)
dcts->height,
dcts->dz,
ti->z,
HASBIT(_transparent_opt, TO_HOUSES)
IsTransparencySet(TO_HOUSES)
);
if (HASBIT(_transparent_opt, TO_HOUSES)) return;
if (IsTransparencySet(TO_HOUSES)) return;
}
{