It is currently 06 Jul 2025, 00:17
   
Text Size

Making a prettier GUI

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

Re: Making a prettier GUI

Postby 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 :)
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 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.
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 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.
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 friarsol » 31 Dec 2010, 14:31

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.
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.
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. » 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. :wink:
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 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.
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time

Re: Making a prettier GUI

Postby 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.
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 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!
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 choppic » 04 Jan 2011, 13:27

Without the frames the main game screen looks slightly more 'professional'.
What do you think, guys?
Attachments
newbg.jpg
Main screen with custom background
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 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).
Attachments
images.zip
New icons for Deck Editor
(96.25 KiB) Downloaded 311 times
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 pinecones » 04 Jan 2011, 13:54

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.
WOW. thank you for the inspiration. that is elegant!
pinecones
 
Posts: 106
Joined: 21 Dec 2010, 09:21
Has thanked: 0 time
Been thanked: 0 time

Re: Making a prettier GUI

Postby DemoneNero » 04 Jan 2011, 22:45

I got a question :D
can we use background images with the old gui too ?
Hold The Heathen Hammer High
User avatar
DemoneNero
 
Posts: 91
Joined: 26 Jul 2010, 19:41
Location: Italy
Has thanked: 4 times
Been thanked: 1 time

Re: Making a prettier GUI

Postby 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.
Attachments
Mage 0.5.1.jpg
Mage Version 0.5.1 GUI
Table.png
Table Traditional Green Felt Background
Salasnet
 
Posts: 29
Joined: 02 Jan 2011, 06:12
Has thanked: 0 time
Been thanked: 16 times

Re: Making a prettier GUI

Postby choppic » 05 Jan 2011, 01:37

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.
Our 'transparent' UI with the green felt background by Salasnet.
Attachments
greenbg.jpg
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 choppic » 05 Jan 2011, 08:25

DemoneNero wrote:I got a question :D
can we use background images with the old gui too ?
I didn't check the old GUI source file. Is the old GUI better than the new one?
User avatar
choppic
 
Posts: 48
Joined: 17 Dec 2010, 07:56
Location: East Java, Indonesia
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 34 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 5050 on 26 Jun 2025, 06:02

Users browsing this forum: No registered users and 34 guests

Login Form