It is currently 20 Oct 2025, 04:41
   
Text Size

Making a prettier GUI

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

Re: Making a prettier GUI

Postby Sloth » 13 Jan 2011, 14:21

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.
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: Making a prettier GUI

Postby Chris H. » 13 Jan 2011, 14:52

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?
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: Making a prettier GUI

Postby Rob Cashwalker » 13 Jan 2011, 15:05

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?
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: Making a prettier GUI

Postby choppic » 13 Jan 2011, 15:09

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?
User avatar
choppic
 
Posts: 48
Joined: 17 Dec 2010, 07:56
Location: East Java, Indonesia
Has thanked: 0 time
Been thanked: 0 time

Re: Making a prettier GUI

Postby friarsol » 13 Jan 2011, 16:00

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Making a prettier GUI

Postby slapshot5 » 13 Jan 2011, 18:25

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
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Making a prettier GUI

Postby friarsol » 13 Jan 2011, 18:38

There is an addKeyListener but I don't know which component we need to attach it to for a global trigger.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Making a prettier GUI

Postby Chris H. » 13 Jan 2011, 22:27

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.
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: Making a prettier GUI

Postby choppic » 14 Jan 2011, 01:26

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 ;)
User avatar
choppic
 
Posts: 48
Joined: 17 Dec 2010, 07:56
Location: East Java, Indonesia
Has thanked: 0 time
Been thanked: 0 time

Re: Making a prettier GUI

Postby slapshot5 » 14 Jan 2011, 02:47

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
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

Re: Making a prettier GUI

Postby Chris H. » 14 Jan 2011, 02:59

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
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: Making a prettier GUI

Postby choppic » 14 Jan 2011, 03:17

Guys, I think this one line could also do the trick:

this.getRootPane().setDefaultButton(filterButton);
User avatar
choppic
 
Posts: 48
Joined: 17 Dec 2010, 07:56
Location: East Java, Indonesia
Has thanked: 0 time
Been thanked: 0 time

Re: Making a prettier GUI

Postby silly freak » 14 Jan 2011, 08:40

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
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: Making a prettier GUI

Postby friarsol » 14 Jan 2011, 13:58

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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: Making a prettier GUI

Postby Rob Cashwalker » 14 Jan 2011, 15:11

Infinite Life: Up Up Down Down Left Right Left Right Start!!!
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 56 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 56 users online :: 0 registered, 0 hidden and 56 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 56 guests

Login Form