Tonight's session saw the start of the "cleaning up" process associated with multiple maps; up until now, I've been dealing with one map and thus, one set of variables. The addition of more maps means the creation of arrays to house what were once single variables (such as map width and height, current tileset, etc.). To compliment these changes, I also need to include small initialisation routines to change certain variables whenever maps are swapped. Not exactly the most riveting task in the world, but a pretty essential one.
After a little more tinkering, I had most of the basic arrays and initialisation routines done; this then led on to a little playing around with check boxes to control a layer's visibility (if you remember, each map will be made up of several layers). This involved changing the map drawing routine to display all layers overlaid, which works quite nicely.
Once I link the tabber controls into the map selection routine, the user will be able to click the tabber to select a layer (and thus, all editing takes place on that layer), while the check boxes will control which layers they can actually see. Of course, it's perfectly possible to turn off the current layer but still make changes (potentially hazardous, but then, PhotoShop has been getting away with that for years, so why can't I?).
