It is currently 07 Sep 2025, 23:02
   
Text Size

Constructed Game launch screen / Deck chooser revamp

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Constructed Game launch screen / Deck chooser revamp

Postby spr » 30 Sep 2013, 08:11

The aim is to implement this -
constructed_revamp.png

but I will try to commit in stages since there is quite a lot of changes.

Cheers,
Steve
Last edited by spr on 30 Sep 2013, 08:11, edited 1 time in total.
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 30 Sep 2013, 08:11

r23358
- Added game type combo to replace the ambiguous "Change Player Type" buttons.
- Remembers game type between sessions.
- Moved "Random" button to bottom of decks list so screen will resize gracefully with no components going AWOL;
- Declutter screen by moving game options to "Game" menu.

Cheers,
Steve
Attachments
constructed_revamp_1.png
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby Max mtg » 30 Sep 2013, 14:17

will it support folders for constructed deck selection?
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 30 Sep 2013, 15:50

Max mtg wrote:will it support folders for constructed deck selection?
Yes - it uses the same code for discovering decks as used now.

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 30 Sep 2013, 21:45

r23361
  • Replaced deck category radio buttons with combo. As well providing more space for the decks list this should make it easier to add new categories in future without requiring any change to the UI.
  • Deck list transparency.

Cheers,
Steve
Attachments
constructed_revamp_2.png
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 01 Oct 2013, 05:33

Suggestion : the default setting for the Constructed launch screen should be a Human v Computer game with the Human deck category set to Preconstructed and the Computer set to Random Color.

My understanding is that the Preconstructed decks are aimed at new players so it would seem a more natural default setting. Anyone have objections if I update it to these defaults?

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby Max mtg » 01 Oct 2013, 11:10

That label 'human v computer' is way too large, moreover it's repeating the information we can read below in deck selection headers
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 02 Oct 2013, 07:00

r23370 : Feedback update
- Restored buttons to combos.
- Made the game type combo slightly smaller.
- Removed deck headings.

Cheers,
Steve
Attachments
Untitled.png
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times

Re: Constructed Game launch screen / Deck chooser revamp

Postby spr » 02 Oct 2013, 13:43

r23370 : Saved state update
- Constructed game now remembers the last deck played for both left and right decks. This state will be restored each time Forge starts. It does not distinguish between game type.
- Default human deck type is Preconstructed decks.

Mulitple instances of FDeckChooser are used in a number of places. Currently its state (that is the deck category and selected deck(s)) can be saved by calling SaveState(), but for that to work you need to pass in an FPref setting via the existing initialize() method. The Constructed screen calls SaveState() when the user clicks Start. Currently, only constructred screen makes use of this feature.

Cheers,
Steve
User avatar
spr
 
Posts: 213
Joined: 06 Jul 2013, 19:31
Has thanked: 28 times
Been thanked: 60 times


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 26 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 26 guests

Login Form