Wednesday, July 26, 2006

Wednesday 26th

More progress over the last few days, after the Demo received a very warm response from those who downloaded it. First up came a tweak to the cursor routines, as I noticed that the Brush outline wasn't pulsing properly when certain panels were being viewed; while tweaking the routines slightly, I noticed a teensy amount of duplicate code which caused one cursor to flash twice as fast, so after writing a separate function everything was running a little bit more efficiently.

Next came a small change to the Test Map system, as there was no on-screen indication that the user was in Test Map mode (this took slightly longer to implement due to the fact that there are two sets of control code, and I was looking at completely the wrong one! ).

Following some feedback from the YakYak forum regarding CPU usage, I tweaked the event system so that switching to another application suspends the editor and frees up valuable processing time.

The final job on my list was a slight tweak to the INI file routine (again!) in order to store the window size (FishEd's main window can be resized to suit larger displays). This also involved tracking down a small problem with the resizing routine, which for some reason wasn't accurately centring the window vertically. Further questions arose regarding the window setup: do I create the window then resize according to the user's preference, or set up the window correctly from the outset?

After a couple of hours scratching my head, trying new things, and tweaking values, the system was working perfectly, thanks in part to the numerous initialisation routines which allow all manner of variables and arrays to be changed on the fly.