Teasers
from
JoeUser Forums
The best thing about working on Gal Civ 2 is that this time around, I have the advantage of more experience coding computer games. I think that any coder will agree with me that (in general) the more code that you write, the better code you write. You learn how to do things better, faster, and cleaner.
Besides working on screens this week, I've fixed some bugs. I fixed the edge scrolling bug, which turned out to be caused by an uninitialized variable, as opposed to an error in the mouse coordinates as I had surmised. I also fixed a bug where a fullscreen window wasn't moving the titlebar offscreen. I fixed a crash caused by ships on autosurvey. I mostly fixed the status bar and slider code, but there are a few inconsistencies with the way that the graphics are set up, so those will need to be fixed. I also fixed the bug where the Are You Sure prompt for deleting or overwriting a save game wasn't coming up until after all the other windows were closed.
I finished the Domestic Trade screen except the minimap isn't drawing, but I'll need Joe's help to fix that. Mormegil finished the new graphics for the Random Event screen, so I tweaked that. The new Galaxy Setup screen is in the game, and last but not least, so is the Planet/Ship list!
I had really liked working on the Planet and Ship lists in GC1, and they're even better in GC2. The Planet/Ship list is brought up by one of the buttons in the button bar and you toggle between showing the ships and the planets. Currently they show all the same information as the old ones did, although we need to get the icons in for the ship windows that show if a ship is in guard mode, etc. Each list has 4 filter buttons. For the planet list, you can show all planets that are not hidden by the FOW, just your planets, just the alien planets, or just the unowned planets. For the ship list, you can show all the ships not hidden by the FOW, just your ships, just the alien ships, and the starbases. In GC1, the starbases were displayed along with the ships, but you couldn't filter the ship list in GC1 and the state of being a starbase isn't mutually exclusive with being owned by either you or the AI. It would be a lot more complicated to show the starbases along with the ships. Another improvement over GC1 is that you can use the mousewheel on the sort spinner now.
There's also a search button on both the ship and planet lists, so you'll be able to search for stars or planets by typing in their names. Currently, it's probably not that great for partial matches but I'll almost certainly be tweaking it later. Finally, remember how you could click on the current military or social project for a planet and it would bring up the Quick Build List? You can still do that in GC2, but for the social projects, it displays the current build queue and allows you to move one of the items to the front of the queue. If there is nothing in the queue, it brings up the planet window.
Oh, and I know that this will make a lot of you happy: I also made it so that you can rename planets and ships by clicking on their names in the context area.
Besides working on screens this week, I've fixed some bugs. I fixed the edge scrolling bug, which turned out to be caused by an uninitialized variable, as opposed to an error in the mouse coordinates as I had surmised. I also fixed a bug where a fullscreen window wasn't moving the titlebar offscreen. I fixed a crash caused by ships on autosurvey. I mostly fixed the status bar and slider code, but there are a few inconsistencies with the way that the graphics are set up, so those will need to be fixed. I also fixed the bug where the Are You Sure prompt for deleting or overwriting a save game wasn't coming up until after all the other windows were closed.
I finished the Domestic Trade screen except the minimap isn't drawing, but I'll need Joe's help to fix that. Mormegil finished the new graphics for the Random Event screen, so I tweaked that. The new Galaxy Setup screen is in the game, and last but not least, so is the Planet/Ship list!
I had really liked working on the Planet and Ship lists in GC1, and they're even better in GC2. The Planet/Ship list is brought up by one of the buttons in the button bar and you toggle between showing the ships and the planets. Currently they show all the same information as the old ones did, although we need to get the icons in for the ship windows that show if a ship is in guard mode, etc. Each list has 4 filter buttons. For the planet list, you can show all planets that are not hidden by the FOW, just your planets, just the alien planets, or just the unowned planets. For the ship list, you can show all the ships not hidden by the FOW, just your ships, just the alien ships, and the starbases. In GC1, the starbases were displayed along with the ships, but you couldn't filter the ship list in GC1 and the state of being a starbase isn't mutually exclusive with being owned by either you or the AI. It would be a lot more complicated to show the starbases along with the ships. Another improvement over GC1 is that you can use the mousewheel on the sort spinner now.
Oh, and I know that this will make a lot of you happy: I also made it so that you can rename planets and ships by clicking on their names in the context area.
That is really exciting stuff. Man, I wish I worked at Stardock!!!