Page 6 of 11

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 14:21
by Sloth
choppic wrote:Icon ideas for graveyard, exile, and poison counter.
Comments please before I draw them in Corel Draw :)
I think the poison icon doesn't fit our fantasy theme. I don't have any better ideas for a simple icon though.

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 14:52
by Chris H.
Sloth wrote:I think the poison icon doesn't fit our fantasy theme. I don't have any better ideas for a simple icon though.
`
Some type of a bottle with a skull?

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 15:05
by Rob Cashwalker
I used my snow day to add the set filter, but didn't get to commit it. It currently sets the deck editor card pictures to the set-specific version (if available), but saving the set selection with the deck won't be added yet. It is actually a rather simple tweak, I already made it work a few weeks ago on my old local source, before upgrading to Ubuntu Linux on the laptop.

I agree, the graveyard doesn't look right, by forcing it into a circle, it loses some of its recognizability, much less how well it will translate at 32x32. The poison one... makes sense... yeah, not quite fantasy... but it's fairly clear what it represents.

Maybe something like Mr. Yuck?
http://farm1.static.flickr.com/7/9553898_b958c37894.jpg

Or
Skull and Crossbones shows up a lot in google image search for "poison"
http://a4cgr.files.wordpress.com/2009/12/poison.png

In fact, here's a 10-sided die used as a poison counter
http://1.bp.blogspot.com/_qTxgf8uqjbQ/T ... ounter.jpg

Or just the Phyrexia symbol, since that's what the Poison counter tokens look like?

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 15:09
by choppic
Sloth wrote:I think the poison icon doesn't fit our fantasy theme. I don't have any better ideas for a simple icon though.
slapshot5 wrote:Perhaps graveyard could just be a headstone with RIP? Cliche, I know, but it's definitely clear.
Chris H. wrote:Some type of a bottle with a skull?
Nice ideas, guys. So graveyard will be a simple headstone with big RIP letters, and Poison will be a bottle with a skull :)
Do we need any other icons for the player beside life points, library, graveyard, poison, and exile?

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 16:00
by friarsol
We need an icon for Hand. And we should probably come up with a better term for Flashback since it's really a way to activate any abilities that can be activated from graveyard/exile. Plus an icon for it.

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 18:25
by slapshot5
friarsol wrote:Maybe we should add a reset filter button next to the apply filter. This would clear out all of the text boxes, set all of the buttons to selected, and run the apply command.
That was the first thing I thought of.

The second thing I thought of was the default action for the <Enter> keystroke after tying in one of these fields. Does anyone know how to set that to "Apply Filter", so I can do the following:

1. type in the card name filter box and press <Enter>
2. BAM - the filter is applied.

-slapshot5

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 18:38
by friarsol
There is an addKeyListener but I don't know which component we need to attach it to for a global trigger.

Re: Making a prettier GUI

PostPosted: 13 Jan 2011, 22:27
by Chris H.
I took a couple of shots at this myself today, but I failed to get it working. And we are getting close to the next beta release.

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 01:26
by choppic
slapshot5 wrote:The second thing I thought of was the default action for the <Enter> keystroke after tying in one of these fields. Does anyone know how to set that to "Apply Filter", so I can do the following:

1. type in the card name filter box and press <Enter>
2. BAM - the filter is applied.
Just add these two lines at the bottom of jbInit:

javax.swing.JRootPane rootPane = this.getRootPane();
rootPane.setDefaultButton(filterButton);

This should do the trick ;)

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 02:47
by slapshot5
choppic wrote:
slapshot5 wrote:The second thing I thought of was the default action for the <Enter> keystroke after tying in one of these fields. Does anyone know how to set that to "Apply Filter", so I can do the following:

1. type in the card name filter box and press <Enter>
2. BAM - the filter is applied.
Just add these two lines at the bottom of jbInit:

javax.swing.JRootPane rootPane = this.getRootPane();
rootPane.setDefaultButton(filterButton);

This should do the trick ;)
Perfect. Thank you. I've submitted this.

-slapshot5

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 02:59
by Chris H.
choppic wrote:Just add these two lines at the bottom of jbInit:

javax.swing.JRootPane rootPane = this.getRootPane();
rootPane.setDefaultButton(filterButton);

This should do the trick ;)
`
Thank you, this is a nice feature. :D

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 03:17
by choppic
Guys, I think this one line could also do the trick:

this.getRootPane().setDefaultButton(filterButton);

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 08:40
by silly freak
when using a JTextField, you can also add the ActionListener directly to the text field to get the same effect
pro - you can use different actions for different text fields
contra - you have to register actions with each of the fields

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 13:58
by friarsol
silly freak wrote:contra - you have to register actions with each of the fields
If we had a contra text field, we could put the konami code in as an easter egg.

Re: Making a prettier GUI

PostPosted: 14 Jan 2011, 15:11
by Rob Cashwalker
Infinite Life: Up Up Down Down Left Right Left Right Start!!!