Friday, October 28, 2005

Friday 28th

Finished the Tool Tips system by adding the rest of the labels and implementing the calls whenever a new tool is selected. Next, I gave the Fetch Tile routine a purpose in life, and linked it up to the Dropper mode (as an afterthought, I also expanded the functionality to allow Left and Right tiles to be grabbed).

Next came the creation of the Tile Inc and Tile Dec routines; these are based on some code I'd written to increment and decrement the current tile, and intelligently scroll the tile window up or down, depending on whether or not the cursor had moved out of sight. Sticking this code into separate routines allowed me to remove duplicate chunks of code - now all actions which increment or decrement the current tile (ie. the +/- keys, and the +/- buttons on the Anim and Grab panels) are consistent.

Fixed a minor bug in the MiniMap Meta window; variables were being set whenever the pull-down lists were activated, which meant that the Cancel button had no effect - this was naturally a simple tweak to fix. :)

Next up came Move Mode, which had been behaving a little quirky since the addition of a Move icon in the Toolbar. Now you can either click the Toolbar to engage Move Mode permanently (tapping M disengages this), or hold M to activate Mode Mode for as long as needed.

Next I tackled a bug in the Continuous Pen mode, which was causing rogue tiles to be printed when switching from the Tile selector to the main canvas. Far from being an irksome bug that took hours to track down, I managed to fix the problem by flushing the mouse buffer whenever canvases are switched. Simple but very effective!