Continued with the various tasks required to bring the Grab Panel to life; the good thing about these tasks is that they're all fairly self-contained, allowing me to dip in and code for as little or as long as I want to.
First up came the routine to rotate the tile 90 degrees clockwise - I had planned on using the code from the Brush Rotate function, but this proved problematic due to the way I'd written that particular routine (ie. with no care for anyone else who might want to use it!). Luckily, I managed to shoehorn the code into the existing For...Next loop I'd set up for the Tile Flipping, and after that it was a simple task to add the counter-clockwise code, too.
Next came the Tile Scroll functions, which again were relatively straightforward to add to the existing loop - this means that all of my Tile manipulation gubbins is now contained within a single routine, making it much easier to tweak.
Flushed with the progress I was making, I decided to tackle a few odd tweaks and bugs that had been hanging around (by sliding a bug onto my schedule whenever things are going well I can feed off my enthusiasm and get things done!). First up came the cursor display for the Anim Panel, which required a teensy tweak so that it always displays properly regardless of the Tile size.
Next, I needed to take my Tile thumbnail code - which currently takes any 64x64 Tileset and scales it down to 32x32 for the Anim and Grab Panels - and turn it into a generic routine so that any Tileset being loaded or refreshed has a thumbnail image to accompany it.
Finally came the Tile Save routine, which had been hanging around the To Do list for far too long; now that the Grab Panel is taking shape, however, it seems logical to implement Tile Saving so that any changes made to the Tileset can actually be saved, too. The logic was fairly easy to poach from another routine, but I hit a snag when saving the Tileset - for some reason, the SaveImage command will only save the first Tile in the Tileset. Hmmm. I sense a posting to the Blitz forums coming on!
