Progress report:

- How it looks so far: New game setup alpha v1
Implemented:
So far I've got it to the point where it does what the previous layout did in that a multiplayer game can be started (up to 8 players) and each player can be set as human or AI. Deck selections will also be remembered as before. In addition, changing player 1's name sets the player name preference and carries through to the match. Players can be added and removed, although one slightly quirky bit of behaviour is that if player 3 is removed, the next player added will be player 4, then 5 - 8 as expected, then player 3 as the last player, but in its old slot. This is because the panels are just hidden when closed and added to the end of a list of inactive players.
Unimplemented:
- Other player names can be changed, but are not yet hooked up to the match. I also want to implement the name randomization here at the initial setup rather than when the match starts so that the names can be changed.
- Variants setup has listeners set up, and ready to be fed to match, but nothing is actually hooked up as some changes are necessary to allow multi-variant games. At the moment the checkboxes build an array of GameTypes (including the new
GameType.ArchenemyRumble). I plan to feed these to the match initialization where the applicaple modifiers can then be applied.
- Deck selection buttons on player panels not in yet, but giving a player focus by clicking the name box or player type radios changes the deck chooser to the relevant player.
- Visual indication of current focus player.
- Avatar selection not yet possible from this screen. It does use the preferred avatar for player 1 and 2, although they don't update when the avatar is changed via the preferences' avatar screen (which this won't replace due to the preference being used in other formats too). Clicking on or otherwise giving focus to the avatar also doesn't update player focus yet and thus doesn't update deck panel.
- Adding a player does not yet give that player panel focus.
- The random deck checkboxes (singleton etc) are still visible all the time next to the start button. They must be moved into the deck chooser construction code.
- Teams setup not laid out or implemented yet.
---------------
If anyone wants to have a look at the current code or try it out, a patch is attached. It is a project patch, but only changes VSubmenuConstructed, and adds the new gameType to the enum in forge-gui/src/main/java/forge/game.
Feedback welcome, but its still quite far from done.
