Making a prettier GUI
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Making a prettier GUI
by choppic » 31 Dec 2010, 10:59
You're right, Sloth. I think we should stick with the official icons.
Let me try something 'similar' then
Let me try something 'similar' then

-
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
by Chris H. » 31 Dec 2010, 13:19
`choppic wrote:This is what I have after I played with Deck Editor.
I upload the files necessary to test the changes.
Unzip the file, and copy the content into src/forge.
Let me know what you guys think..
RE: New Game Window
I see in the Gui_NewGame class:
- Code: Select all
ImageIcon bkgd = new ImageIcon("src/forge/images/newgame_background.jpg");
The forward slash works on my Apple iMac but will this work on all OS'? At some point in the past, Silly Freak or Snacko mentioned a java call that would add in the appropriate file path separator which would depend on which OS was being used. Just a thought, and I know that I am getting in past my knowledge base.

The white colored "New Game" shows up with the included picture but on other pics it may become hard to read. May want to consider creating a panel for the title that would use the same characteristics as the other three panels.
-
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
by Chris H. » 31 Dec 2010, 13:33
`friarsol wrote:Does anyone know the reason why we have a separate DeckEditor for Quest Mode? It would be nice if all of these improvements went across the board without additional tampering.
We also have a separate deck editor for draft mode and there may be one for sealed deck mode. People might have found it easier to modify a copy of the original constructed mode deck editor and make it a separate class file.
I agree that it would be nice if at some point someone could modify the constructed mode deck editor and then this class file would be able to handle all modes. This would allow us to ditch the other deck editors and only have one.
-
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
by friarsol » 31 Dec 2010, 14:31
Oh god. I didn't realize it was that wide-spread. I'll try to unify all of this once we have some of these updates from choppic in there.Chris H. wrote:`friarsol wrote:Does anyone know the reason why we have a separate DeckEditor for Quest Mode? It would be nice if all of these improvements went across the board without additional tampering.
We also have a separate deck editor for draft mode and there may be one for sealed deck mode. People might have found it easier to modify a copy of the original constructed mode deck editor and make it a separate class file.
I agree that it would be nice if at some point someone could modify the constructed mode deck editor and then this class file would be able to handle all modes. This would allow us to ditch the other deck editors and only have one.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Making a prettier GUI
by Chris H. » 31 Dec 2010, 14:45
`friarsol wrote:Oh god. I didn't realize it was that wide-spread. I'll try to unify all of this once we have some of these updates from choppic in there.
Yeah, we need to unify it into one class at some point. And you may want to look into adding the card shop at that time.
We also need to give Choppic committer status. Choppic should send his Google gmail address to DennisBergkamp by private message. Dennis will then add Choppic to the growing list of committers.

-
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
by DennisBergkamp » 31 Dec 2010, 21:25
This stuff looks great, Choppic. Yes, PM me with your email address and I will give you commit privileges to our SVN.
-
DennisBergkamp - AI Programmer
- Posts: 2602
- Joined: 09 Sep 2008, 15:46
- Has thanked: 0 time
- Been thanked: 0 time
Re: Making a prettier GUI
by Rob Cashwalker » 01 Jan 2011, 23:14
forward-slash worked perfectly fine in XP, still works in Vista. I think the Java library for each platform takes care of translating if necessary.
The Force will be with you, Always.
-
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
by silly freak » 02 Jan 2011, 13:34
Yes, I think so too. As long as we don't expect to find slashes in our paths (say, for String.split()), it should be fine.
___
where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
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
by choppic » 04 Jan 2011, 13:27
Without the frames the main game screen looks slightly more 'professional'.
What do you think, guys?
What do you think, guys?
-
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
by choppic » 04 Jan 2011, 13:46
These are the new icons for the Deck Editor.
These new icons have 'similar' look and feel as the official symbols (suggested by Sloth).
These new icons have 'similar' look and feel as the official symbols (suggested by Sloth).
- Attachments
-
images.zip
- New icons for Deck Editor
- (96.25 KiB) Downloaded 311 times
-
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
by pinecones » 04 Jan 2011, 13:54
WOW. thank you for the inspiration. that is elegant!choppic wrote:Let's admit it, Forge is a wonderful MTG game, with all the cards, planeswalkers, and of course the great cast of programmers working pro bono.
I love this game, and I honestly think that this game deserves a prettier GUI.
I don't know if any other members of this forum has tried this before. I played around with the source code, and this is the New Game dialog I currently have.
Feel free to share your comments, and (fingers crossed) maybe some line of codes to make the GUI better.
- pinecones
- Posts: 106
- Joined: 21 Dec 2010, 09:21
- Has thanked: 0 time
- Been thanked: 0 time
Re: Making a prettier GUI
by DemoneNero » 04 Jan 2011, 22:45
I got a question
can we use background images with the old gui too ?

can we use background images with the old gui too ?
Hold The Heathen Hammer High
-
DemoneNero - Posts: 91
- Joined: 26 Jul 2010, 19:41
- Location: Italy
- Has thanked: 4 times
- Been thanked: 1 time
Re: Making a prettier GUI
by Salasnet » 05 Jan 2011, 00:57
I do like the main background without frames, but in the battlefield, some folks may want a divider between the "sides". Just a thought. I know that is how Magic Online does it, and it's pretty elegant.
Two things:
First, I would love to see what the version without frames looks like with the traditional green felt background that I am attaching to this post. I use this green felt background for many games, and it always adds a touch of class when I use it.
Second, it might be worth our while to have a look at the "Mage" program located here:
viewtopic.php?f=70&t=3763
It is also a Magic playing program written in Java that uses a client/server model for internet play, and also running a local server for playing against the AI. The AI uses a Min-Max hybrid model. You can see in the attached screenshot for version 0.5.1 that it uses Magic Online as its GUI blueprint.
Still, it does some things well, including a nice tapping animation that shows the card turning like in Magic Online. A nice log of moves played on the right hand side, etc.
At the very least, it would be worth it to take a look at their Java code to see how they did some of the GUI things.
Two things:
First, I would love to see what the version without frames looks like with the traditional green felt background that I am attaching to this post. I use this green felt background for many games, and it always adds a touch of class when I use it.
Second, it might be worth our while to have a look at the "Mage" program located here:
viewtopic.php?f=70&t=3763
It is also a Magic playing program written in Java that uses a client/server model for internet play, and also running a local server for playing against the AI. The AI uses a Min-Max hybrid model. You can see in the attached screenshot for version 0.5.1 that it uses Magic Online as its GUI blueprint.
Still, it does some things well, including a nice tapping animation that shows the card turning like in Magic Online. A nice log of moves played on the right hand side, etc.
At the very least, it would be worth it to take a look at their Java code to see how they did some of the GUI things.
Re: Making a prettier GUI
by choppic » 05 Jan 2011, 01:37
Our 'transparent' UI with the green felt background by Salasnet.Salasnet wrote:First, I would love to see what the version without frames looks like with the traditional green felt background that I am attaching to this post. I use this green felt background for many games, and it always adds a touch of class when I use it.
-
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
by choppic » 05 Jan 2011, 08:25
I didn't check the old GUI source file. Is the old GUI better than the new one?DemoneNero wrote:I got a question![]()
can we use background images with the old gui too ?
-
choppic - Posts: 48
- Joined: 17 Dec 2010, 07:56
- Location: East Java, Indonesia
- Has thanked: 0 time
- Been thanked: 0 time
Who is online
Users browsing this forum: No registered users and 34 guests