General UI support
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: General UI support
by moomarc » 09 May 2012, 07:38
Thanks Durandal! This reminds me of something I've been meaning to ask Doublestrike for a while but got caught up with work and forgot... How difficult would it be to add the ability to save/load layouts? Essentially loading a save would replace the contents of match_preferred.xml. Nothing worse than getting a layout you like then pressing the reset layout button instead of skip to phase. I've taken to saving layouts I like as backup files then swapping them in manually, but the ability to do this in-game would be awesome. I guess the reset layout button would bring up a list of saved layouts instead, with the default as an option.7Durandal7 wrote:Yeah it works great with hi-res images and widescreen resolutions. In fact, I'll attach it to save people the trouble of doing it themselves if they happen to want it. It goes in the res/layouts/ directory. I had to archive it so the forum wouldn't get mad about .xml extensions. Just extract the .zip to res/layouts/.Doublestrike wrote:
EDIT - interesting layout! I've been partial to the "massive picture" style myself lately.
I realise you're busy with other parts at the moment but thought I'd bring it up to add to your list if its feasable (or add outright if it ends up being a smaller change than I thought)
-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: General UI support
by Doublestrike » 10 May 2012, 00:10
@moomarc - not too difficult, as you've said it's just match_preferred.xml, so all that's needed is a UI to switch different xmls in and out (and rename them).
But also as you've said, busy, so it's on the todo, I suppose, unless our one-man-band of a UI team can get a partner.
But also as you've said, busy, so it's on the todo, I suppose, unless our one-man-band of a UI team can get a partner.
Just send Rob or Chris a PM requesting you be added to the list, then grab Eclipse, plug in Subclipse, and check out a project. Use the "right-click" -> "team" to do all SVN ops. Boom, you're on your way!Maybe I should look into how to work SVN
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: General UI support
by Chris H. » 10 May 2012, 02:03
Doublestrike wrote:Maybe I should look into how to work SVN
Just send Rob or Chris a PM requesting you be added to the list, then grab Eclipse, plug in Subclipse, and check out a project. Use the "right-click" -> "team" to do all SVN ops. Boom, you're on your way!
Ah, and we also have the getting started forge wiki at Forge:How_to_Get_Started_Developing_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: General UI support
by 7Durandal7 » 10 May 2012, 02:43
Ok, thanks. I had everything up to getting added to the list. I honestly don't have a whole lot of time to put in to looking at things, but if a particularly annoying bug pops up, I might post changes from time to time.
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Re: General UI support
by Doublestrike » 10 May 2012, 07:22
Greeeeaat, so we'll put you down for...implementing banding, commander mode, and...what's that? You want to rebuild the battlefield too? OK... *pen scratches* battlefield. Done.

Just kidding. Any help will be great, and welcome to the team!

Just kidding. Any help will be great, and welcome to the team!
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: General UI support
by Chris H. » 10 May 2012, 10:28
7Durandal7 wrote:Ok, thanks. I had everything up to getting added to the list. I honestly don't have a whole lot of time to put in to looking at things, but if a particularly annoying bug pops up, I might post changes from time to time.
I added you to the list of forge devs and this will give you commit privs.
We all appreciate the occasional small bug fix as this helps to improve the game experience for everyone.
And being able to commit your own changes to the SVN rather than waiting for someone else to push your work can provide a real sense of accomplishment.
-

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: General UI support
by 7Durandal7 » 10 May 2012, 17:39
Well hey, thanks!
I guess I'll try to commit those changes I posted about.
Edit: Commmit made. Thanks for the help guys!
I guess I'll try to commit those changes I posted about.
Edit: Commmit made. Thanks for the help guys!
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Re: General UI support
by 7Durandal7 » 10 May 2012, 19:51
I've started to implement something like this. The "Revert Layout" button is now an "Open Layout" button. Open the "match_default.xml" to revert to the original layout. There is no save function implemented, but editing the layout still saves it to "match_preferred.xml" You can copy and rename that file to share layouts. I'll commit the changes.moomarc wrote:
Thanks Durandal! This reminds me of something I've been meaning to ask Doublestrike for a while but got caught up with work and forgot... How difficult would it be to add the ability to save/load layouts? Essentially loading a save would replace the contents of match_preferred.xml. Nothing worse than getting a layout you like then pressing the reset layout button instead of skip to phase. I've taken to saving layouts I like as backup files then swapping them in manually, but the ability to do this in-game would be awesome. I guess the reset layout button would bring up a list of saved layouts instead, with the default as an option.
I realise you're busy with other parts at the moment but thought I'd bring it up to add to your list if its feasable (or add outright if it ends up being a smaller change than I thought)
EDIT: I've implemented this better. The original code and button for "Revert Layout" is back. A new button for "Open Layout" has been added. I couldn't really find code for a generic Open dialog, so there is now code for a generic Open dialog in the forge.gui.toolbox package.
EDIT 2: A "Save Layout" button has been added too. I would say this is done unless major issues arise.
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Re: General UI support
by friarsol » 12 May 2012, 00:17
The one that exists is semi-functional. Click on it, you may also need to pass priority.Milod wrote:a shortcut key for end turn possible :] ?
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: General UI support
by friarsol » 16 May 2012, 02:58
On the End Match screen (the one that shows booster prizes and ante) if you close via the X button instead of the Quit button the game flips out a bit and replays the end game mode. I managed to duplicate a Grasslands 9 times by pressing the X instead of the Quit button.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: General UI support
by WompWomp » 16 May 2012, 09:46
Guessing this is a UI bug, not sure: If you mash the okay button repeatedly when you win in quest mode you are given the rewards multiple times.
Re: General UI support
by Doublestrike » 20 May 2012, 05:44
OK everyone, it just about killed me, but the deck editor is now fully integrated!
And, I added a pile of new features to make it pretty much golden (when all the bugs are smashed). Among other things, it's now got
- a better text search (can search for multiple terms, and "not" terms
- interval filters for P/T and CMC
- add/remove 4
- better statistics and draw probabilities
- Toggle-able, sort-able, resize-able, move-able columns
...and of course uses the drag cell layout.
My commit is less refined than I wanted, but I've been developing for the last four (five?) weeks and I'm getting nervous, so gotta push it up.
I'll be tweaking away at it for a while though.
Enjoy!
And, I added a pile of new features to make it pretty much golden (when all the bugs are smashed). Among other things, it's now got
- a better text search (can search for multiple terms, and "not" terms
- interval filters for P/T and CMC
- add/remove 4
- better statistics and draw probabilities
- Toggle-able, sort-able, resize-able, move-able columns
...and of course uses the drag cell layout.
My commit is less refined than I wanted, but I've been developing for the last four (five?) weeks and I'm getting nervous, so gotta push it up.
Enjoy!
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Re: General UI support
by moomarc » 20 May 2012, 06:54
Looks great Doublestrike! Thanks for all the work on it!
Edit: won't be able to try it before Monday or Tuesday, so might as well ask now. Does the layout have a separate prefs xml to the match layout?
Edit: won't be able to try it before Monday or Tuesday, so might as well ask now. Does the layout have a separate prefs xml to the match layout?
-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: General UI support
by Chris H. » 20 May 2012, 11:11
moomarc wrote:Looks great Doublestrike! Thanks for all the work on it!
Edit: won't be able to try it before Monday or Tuesday, so might as well ask now. Does the layout have a separate prefs xml to the match layout?
I found a file named "editor_default.xml" located in the layouts folder.
-

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
Who is online
Users browsing this forum: No registered users and 33 guests