It is currently 16 Nov 2025, 23:25
   
Text Size

General UI support

Post MTG Forge Related Programming Questions Here

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

Re: General UI support

Postby Max mtg » 22 Feb 2012, 03:41

Doublestrike wrote:Re: selection options. That would be introducing another click into the mix - player (click), gametype (click), deck (click click), player (click), gametype (click), deck (click click). I personally like having all the options in front of me right away. Tabs were chosen to support small screens and also multiple players in the future. But, there's always a better mousetrap - what does everyone else think?
That extra click for game type is a fair tradeoff for elimination of confusion when someone who plays for the first time cannot decide which point of the list to choose... or has to scroll down to see two other listboxes on small screens.

Maybe accordeon would be better than tabs? It will be able to show deckname in header and is somewhat closer to having all options in front of you.
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: General UI support

Postby Doublestrike » 22 Feb 2012, 04:40

Yep, good point. But give me a week or so and there'll be something even better in place - just gotta code it up.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Sloth » 22 Feb 2012, 08:56

Doublestrike wrote:@Max - the four fields are color gen, custom decks, theme gen, and quest decks. The deck manager was still under construction when I finished this code, so that functionality still needs testing, but should need very little work.

Re: selection options. That would be introducing another click into the mix - player (click), gametype (click), deck (click click), player (click), gametype (click), deck (click click). I personally like having all the options in front of me right away. Tabs were chosen to support small screens and also multiple players in the future. But, there's always a better mousetrap - what does everyone else think?
Maybe chosing game type can make room for both players fitting on the same screen again:
Attachments
Constructed - 01.jpg
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: General UI support

Postby Max mtg » 22 Feb 2012, 11:00

Sloth, try shrinkning the window width to a minimum of 800px - there's no space for 4 barrels
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: General UI support

Postby Sloth » 22 Feb 2012, 12:33

Max mtg wrote:Sloth, try shrinkning the window width to a minimum of 800px - there's no space for 4 barrels
I just feel better clicking "Start" when i can see what i have chosen for both players.
How about this (including throwing out the Singleton Mode, etc options)?
Attachments
Constructed2 - 01.jpg
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: General UI support

Postby Doublestrike » 22 Feb 2012, 13:18

Thanks for the suggestions, guys, I've got enough to go on now. Just give me a few days and I guarantee you'll like the results - we'll have our cake and eat it too.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby slapshot5 » 22 Feb 2012, 13:48

Sloth wrote:I just feel better clicking "Start" when i can see what i have chosen for both players.
Yes, yes, a thousand times yes.

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: General UI support

Postby Chris H. » 23 Feb 2012, 00:05

Rev 14289 gives me the following 8 errors, there may be a missing piece to this merge:


errors | Open
The method getMenuCommand() of type ControlSubmenuColors must override or implement a supertype method ControlSubmenuColors.java /ForgeSVN/src/main/java/forge/control/home/constructed line 48 Java Problem

The method getMenuCommand() of type ControlSubmenuCustom must override or implement a supertype method ControlSubmenuCustom.java /ForgeSVN/src/main/java/forge/control/home/constructed line 28 Java Problem

The method initialize() of type ControlSubmenuColors must override or implement a supertype method ControlSubmenuColors.java /ForgeSVN/src/main/java/forge/control/home/constructed line 39 Java Problem

The method initialize() of type ControlSubmenuCustom must override or implement a supertype method ControlSubmenuCustom.java /ForgeSVN/src/main/java/forge/control/home/constructed line 36 Java Problem

The type ControlSubmenuColors must implement the inherited abstract method IControlSubmenu.getCommand() ControlSubmenuColors.java /ForgeSVN/src/main/java/forge/control/home/constructed line 16 Java Problem

The type ControlSubmenuColors must implement the inherited abstract method IControlSubmenu.getView() ControlSubmenuColors.java /ForgeSVN/src/main/java/forge/control/home/constructed line 16 Java Problem

The type ControlSubmenuCustom must implement the inherited abstract method IControlSubmenu.getCommand() ControlSubmenuCustom.java /ForgeSVN/src/main/java/forge/control/home/constructed line 20 Java Problem

The type ControlSubmenuCustom must implement the inherited abstract method IControlSubmenu.getView() ControlSubmenuCustom.java /ForgeSVN/src/main/java/forge/control/home/constructed line 20 Java Problem
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: General UI support

Postby friarsol » 23 Feb 2012, 01:38

Put a temporary fix in for the compiler errors. Not sure if this is what we wanted to do here, but compile errors are never a good thing.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby Doublestrike » 23 Feb 2012, 03:04

Hmm, yeah something may have missed the boat. I probably forgot to add a new class to version control. Thanks for that.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby moomarc » 01 Mar 2012, 08:42

I haven't actually played a full game in a while so don't know whether this is new, but whenever the human draws a card, the card animation has a weird glitch. In addition to the card being animated toward your hand while growing, a copy is animated away from it while shrinking.
CardDrawGlitch.jpg
Card draw animation glitch

Then, I don't know if its related to this glitch or not, but I could barely get through a game this morning due to slowdown, and I'm running on a really good graphics card with 12gigs RAM and an i7 processor. Is anyone else having this problem? I ask because I had a major crash the other night while working on a big 3d project, so I might just have fried my graphics card (although everything else seems fine).

One last thing, the library and poison counters don't become opaque while hovering over them like the rest of the player status icons.
-Marc
User avatar
moomarc
Pixel Commander
 
Posts: 2091
Joined: 04 Jun 2010, 15:22
Location: Johannesburg, South Africa
Has thanked: 371 times
Been thanked: 372 times

Re: General UI support

Postby Doublestrike » 02 Mar 2012, 00:53

Hmm, yeah, I think that animation problem is definitely new. I'll see what I can do today, with the opacity bug too.

EDIT - opacity bug has been updated. Poison counters have no click event, so they don't have a hover listener. Animation will have to wait for the match UI / battlefield refactor.
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Doublestrike » 03 Mar 2012, 12:18

Finished!

r14513: Full home UI rebuild: singleton design pattern, better menu structure, improved resizing dynamics, constructed mode rebuild.
Let the bugs come crawling in.

I've had trouble using "save as" decks in the deck editor. The deck will duplicate, but the name will remain the same as the old one.

Also, there's an occasional NPE when deleting draft decks, but I haven't nailed it down to a repro case yet.

A few more highlights:

- Constructed mode should be right now (thanks moomarc for the explanation).
- There should be a significant performance increase in the home menu area, since it's fully singleton now.
- Deck editor is back in the main menu :)
---
A joke is a very serious thing.
User avatar
Doublestrike
UI Programmer
 
Posts: 715
Joined: 08 Aug 2011, 09:07
Location: Bali
Has thanked: 183 times
Been thanked: 161 times

Re: General UI support

Postby Chris H. » 03 Mar 2012, 13:41

I noticed that there is no longer an "Exit" button but I guess that it is not really needed.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: General UI support

Postby friarsol » 03 Mar 2012, 17:43

It seems weird to me on the constructed view that you would choose the AIs deck first, and my deck second.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 13 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 13 guests

Login Form