Saturday, August 21, 2004

Saturday 21st

Started work on the Info window, and encountered a strange flickering effect on the text - eventually tracked this down to the fact that I was using the wrong command (CreateLabel, instead of UpdateGadgetText, for Blitz fans who are reading). I really wish someone would write a GUI tutorial for Blitz - GUI editors are all very well, but I need to understand how the code works without sifting through every command in the manual looking for variations on a theme.

After fiddling around for a while positioning the text and adding the variables, I started to wonder if the multiple windows system is the way to go; it's currently very easy to "lose" the Tile window, for instance, if you're multi-tasking with other applications. Having everything on one centralised window isn't the real problem - the tricky bit is creating a layout that a) won't inhibit future expansion of the Editor, and b) will suit the majority of user preferences.

Took a little time out this evening to update this diary in response to some feedback from the YakYak forum, the main task being to change the entry order and have the most recent one at the top (certainly makes life easier on the mouse wheel!). I also added links to the last 10 entries on the left hand side - all at no extra charge. :)

* * *

Back in Editor Land, I decided to dump the Tile and Info windows, and spent a while adding a new Tabber on the right of the screen to incorporate the Tile information and the Info underneath. It's all fairly rough at the moment, and there's still plenty of options and information I need to arrange on-screen, but I have a good starting-point.

As I'm now dealing with multiple canvases (one for the Map, one for the Tiles), a few bugs have crept in regarding tracking the Mouse in each area. I need to revise my main loop anyway, so I'll make a note of the bugs but deal with them when the main loop is revamped.

I also took the liberty of tying some more functions in to the Toolbar (this wasn't my plan, but I accidentally kept clicking the Line tool on Toolbar and shouting "D'oh!" when it didn't work). Again, the tool activation is tied in to my main loop, so a couple of niggly toolbar problems will have to stay until the loop issue is addressed.

To finish off, I spent a bit of time implementing a Brush Grid, which automatically resizes itself according to the current Brush size. I then added a function to scroll this whenever the Map is scrolled, and tomorrow I shall add some code to "snap" the Brush to the Grid. This will give the user maximum flexibility grid-wise; they can have a fixed or scrollable grid, with or without the Snap option. Splendid!

The new-look Editor, complete with a flashy GUI...