Know any UI Developers? (Bounty Inside)
by mtgrares
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
Re: Know any UI Developers? (Bounty Inside)
by moomarc » 25 Aug 2011, 13:22
I thought you might have swapped out the background-with-logo-built-in for the separated ones I provided a while ago because I thought you might want the extra flexibility. If you just missed that and want to go that route, I'll post them again so you don't have to sift through all the earlier zips. And I definitely don't mind restyling those 2 buttons. Only reason I didn't suggest it originally was because I thought they might still be stacked in one of the additional resolutions (when we get there) so it would cut down on duplicated files. But it makes more sense to just restyle them and make them look good!Rob Cashwalker wrote:I can't swap the logo it's built-in to the background. I can't move it higher either, for the same reason.
If you want to restyle the settings and utility buttons since they're in a different location, that would be cool. The could be made a bit smaller. Maybe even trim left and right sides so that the two buttons fit across the top.

-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
UI Developers
by moomarc » 05 Sep 2011, 12:49
Finally created the new Settings and Utility buttons. Sorry it took so long
I never ended up finishing the first night I'd planned on doing it, then it was my anniversary, so I just didn't get 'round to finishing.
Anyway, here's the sample, and the elements for Rob are attached. I removed the cards from the bottom of the image because they didn't look right anymore if I moved or resized them after enlarging the scroll area. The two new buttons only have selected, unselected and hover states. Just duplicate the selected state if you need a 'click' state.


Anyway, here's the sample, and the elements for Rob are attached. I removed the cards from the bottom of the image because they didn't look right anymore if I moved or resized them after enlarging the scroll area. The two new buttons only have selected, unselected and hover states. Just duplicate the selected state if you need a 'click' state.
- Attachments
-
Background.zip
- Reworked background elements
- (226.81 KiB) Downloaded 253 times
-
Buttons rev3.zip
- New utilities and settings buttons
- (104.81 KiB) Downloaded 244 times
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Know any UI Developers? (Bounty Inside)
by Rob Cashwalker » 07 Sep 2011, 03:56
thanks Marc..
I've been on vacation this week, so I haven't done nearly as much as I wanted to.
I've been on vacation this week, so I haven't done nearly as much as I wanted to.
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: Know any UI Developers? (Bounty Inside)
by Max mtg » 09 Sep 2011, 11:14
I've just commited GuiOldNewGame - there are some minor changes in functionality, hope they don't break your development process.
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: Know any UI Developers? (Bounty Inside)
by Rob Cashwalker » 09 Sep 2011, 14:19
All my work has been on a class, "Gui_NewGame2".... I'm merely replicating the core functions of the launch screen, hopefully there's no critical changes necessary in the gui to support your work.
Last I updated, there were a lot of references to the OldGuiNewGame to pull option settings in various other classes, while they should've been pulled from the ForgePreferences class (hosted in Singletons.
Last I updated, there were a lot of references to the OldGuiNewGame to pull option settings in various other classes, while they should've been pulled from the ForgePreferences class (hosted in Singletons.
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: Know any UI Developers? (Bounty Inside)
by Rob Cashwalker » 24 Sep 2011, 18:09
Finally, the moment we've been waiting for... the first draft of the new HomeScreen.
Since it's still under test, it is not enabled by default. To enable it, set an environmental variable, "NG2 = true" in the eclipse run configuration.
Since it's still under test, it is not enabled by default. To enable it, set an environmental variable, "NG2 = true" in the eclipse run configuration.
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: Know any UI Developers? (Bounty Inside)
by Chris H. » 24 Sep 2011, 19:49
I may have made a mistake on my end. Not sure ... I can see some of the New Game screen when launched within forge.
-
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: Know any UI Developers? (Bounty Inside)
by Rob Cashwalker » 24 Sep 2011, 20:06
Ahh.. I know what happened... stand by for a new rev.
edit - fixed in rev 10677.
edit - fixed in rev 10677.
- Code: Select all
// Hack... WindowBuilder can't deal with path relative to the project folder like "res/"
// So... use a full path when debugging or designing with WindowBuilder
//private String HomeScreenPath = "/home/rob/ForgeSVN/ForgeSVN/res/images/ui/HomeScreen/";
// And switch to relative path for distribution
private String HomeScreenPath = "res/images/ui/HomeScreen/";
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: Know any UI Developers? (Bounty Inside)
by moomarc » 24 Sep 2011, 20:38
I can't wait to try it out in the morning. Thanks Rob. You must be sick of this task by now.Rob Cashwalker wrote:Ahh.. I know what happened... stand by for a new rev.
edit - fixed in rev 10677.

-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Know any UI Developers? (Bounty Inside)
by Chris H. » 25 Sep 2011, 00:17
`Rob Cashwalker wrote:Ahh.. I know what happened... stand by for a new rev.
edit - fixed in rev 10677.
Thank you Rob, we can now see what it looks like and it is an improvement. Looks like a real game now.
-
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: Know any UI Developers? (Bounty Inside)
by moomarc » 25 Sep 2011, 08:40
I'm doing something wrong (not unpredictably considering my Eclipse knowledge) so would either of you please point out where I'm going wrong.
Currently I go to run configurations, select Gui_NewGame under Java application, open the Environment tab, and add a new variable with a random name and a value of "NG2=true" (without the quotation marks). I leave 'Append environment to native environment' selected then click apply. I then run the configuration but still get the old gui.
Any assistance would be greatly appreciated!
Currently I go to run configurations, select Gui_NewGame under Java application, open the Environment tab, and add a new variable with a random name and a value of "NG2=true" (without the quotation marks). I leave 'Append environment to native environment' selected then click apply. I then run the configuration but still get the old gui.
Any assistance would be greatly appreciated!
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Know any UI Developers? (Bounty Inside)
by Sloth » 25 Sep 2011, 09:59
The Name of the variable is "NG2" and the value is "true".moomarc wrote:I'm doing something wrong (not unpredictably considering my Eclipse knowledge) so would either of you please point out where I'm going wrong.
Currently I go to run configurations, select Gui_NewGame under Java application, open the Environment tab, and add a new variable with a random name and a value of "NG2=true" (without the quotation marks). I leave 'Append environment to native environment' selected then click apply. I then run the configuration but still get the old gui.
Any assistance would be greatly appreciated!
-
Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: Know any UI Developers? (Bounty Inside)
by moomarc » 25 Sep 2011, 11:29
@ Sloth:Sloth wrote:The Name of the variable is "NG2" and the value is "true".

@ Rob: I think the new graphical GUI turned out really well. I'll start working on some theme replacement packs when I get a chance. Just one question... is it possible to set the jBox decoration and background off so that the image behind shows through? It would make it much easier to work with the background then as you wouldn't be stuck with trying to match the current box colour with a background element. At some stage when you're ready to adjust the layout for other resolutions, let me know what sizes you want me to work with. I'm guessing one that's netbook-friendly for when that low resolution is supported fully (so perhaps 450x500) and one for high res displays like the macs (maybe 900x1200).
-Marc
-
moomarc - Pixel Commander
- Posts: 2091
- Joined: 04 Jun 2010, 15:22
- Location: Johannesburg, South Africa
- Has thanked: 371 times
- Been thanked: 372 times
Re: Know any UI Developers? (Bounty Inside)
by Rob Cashwalker » 25 Sep 2011, 13:56
Marc,
Not all the components seem to act the same with respect to the setOpaque(false) parameter. Unless an image with transparency is assigned to a JButton, it's drawn solid, even ignoring the color setting. (for example, the buttons in Settings and Utilities)
I didn't implement the file-based theme concept just yet.. wanted to get the general concept implemented.
Not all the components seem to act the same with respect to the setOpaque(false) parameter. Unless an image with transparency is assigned to a JButton, it's drawn solid, even ignoring the color setting. (for example, the buttons in Settings and Utilities)
I didn't implement the file-based theme concept just yet.. wanted to get the general concept implemented.
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: Know any UI Developers? (Bounty Inside)
by friarsol » 25 Sep 2011, 19:46
Lookin pretty slick Rob. Quick question, I don't have a quest.dat file on this machine, and it seems the Quest mode is inaccessible to me (can't start a new quest). I can click quest mode, and it's highlighted and I can click on Start, but nothing seems to happen.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Who is online
Users browsing this forum: No registered users and 39 guests