I've finished up the core functionality of diplomacy screen, finally. You can now receive messages, and decide whether or not to accept (if available) the offer. It also shows outgoing/incoming message icons on top of avatars.
With that out of the way, I decided to do a quick implementation of the in-game menu where you can go to set up game options, save, etc. It now can start a new game from there, or go back to main menu. Saving/loading still haven't been implemented. I hope to do that soon though!
With most major screens done, I have two major screens left to do: Space Combat or Manage Ship Designs. Hmm... which sounds more exciting? Since I'm a bit sick of doing UI stuff for different screens, I decided to actually start implementing space combat!
I modified the space combat screen (shown in a post a long time ago) to use the new ship design code, and to allow for more than two fleets to fight at once. I had to change how ships are placed, and modify some other code, to allow for this change. I hacked together a simple combat scenario (all empire's starting fleets start at 0,0, with each fleet having three different ships) so it'll bring up combat screen at end of turn processing. This is what it looks like when you have five empires involved in a combat:
Each fleet is put at a point that's equidistant from other points, and each fleet have its ships positioned on a tangent line at that point. So you can see the five fleets with their ships facing the center of the circle. The more ships/fleets there are in a combat, the bigger the combat area will be.
This is a closeup of one of the fleet in the combat screen:
This is just a quick hack to get the combat screen to work. There's a lot of work to be done! I need to improve ship placement (they get overlapped), then do the check for possible conflicts in a correct way (I hacked it so it'd always conflict with all fleets), then rest of the combat stuff.