Thursday, January 27, 2005

Thursday 27th

Started off today's session with a brief look through the Brush code to see how I'd structured the data, and I reached one of those points where the code ceased to make sense - I'd reserved an array to hold the Brush X and Y dimensions, but for some reason this wasn't being used. That left the question, how on Earth could the routine possibly work? After a little detective work, it turns out I'd been too efficient, storing the dimensions along with the actual Brush data, rather than the X/Y array. Doh!

The main task for today, however, was to tackle the Mini-Map, which shows a miniature version of the current layer. This was implemented some time ago, but never finished due to the fact that other routines needed to be finalised.

My first task was to alter the routine to allow the user to move the Highlight cursor (which shows the User which part of the map they are looking at) by using the mouse - this was relatively painless, and speeds up map navigation exponentially.

With this in place, I adjusted the Tabber and Canvas routines to allow the Mini-Map to cater for maps larger than the Mini-Map window; the scrolling took a little while to get right, but needs further thought regarding how this will be integrated with the mouse control, i.e. does the cursor stay in the centre of the window and the map scroll around it?