It is currently 12 Nov 2025, 23:00
   
Text Size

General UI support

Post MTG Forge Related Programming Questions Here

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

Re: General UI support

Postby moomarc » 09 May 2012, 07:38

7Durandal7 wrote:
Doublestrike wrote:
EDIT - interesting layout! I've been partial to the "massive picture" style myself lately.
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/.
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) :wink:
-Marc
User avatar
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

Postby 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. :)

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!
---
A joke is a very serious thing.
User avatar
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

Postby 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

: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: General UI support

Postby 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.
User avatar
7Durandal7
 
Posts: 15
Joined: 04 May 2012, 04:38
Has thanked: 7 times
Been thanked: 9 times

Re: General UI support

Postby 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.

:mrgreen: :twisted: :lol: \:D/

Just kidding. Any help will be great, and welcome to the team!
---
A joke is a very serious thing.
User avatar
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

Postby 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.
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: General UI support

Postby 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!
User avatar
7Durandal7
 
Posts: 15
Joined: 04 May 2012, 04:38
Has thanked: 7 times
Been thanked: 9 times

Re: General UI support

Postby 7Durandal7 » 10 May 2012, 19:51

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) :wink:
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.

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.
User avatar
7Durandal7
 
Posts: 15
Joined: 04 May 2012, 04:38
Has thanked: 7 times
Been thanked: 9 times

Re: General UI support

Postby Milod » 11 May 2012, 23:35

a shortcut key for end turn possible :] ?
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: General UI support

Postby friarsol » 12 May 2012, 00:17

Milod wrote:a shortcut key for end turn possible :] ?
The one that exists is semi-functional. Click on it, you may also need to pass priority.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby 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

Postby 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.
User avatar
WompWomp
 
Posts: 31
Joined: 06 Nov 2011, 21:28
Has thanked: 2 times
Been thanked: 8 times

Re: General UI support

Postby 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!
Attachments
Horizontal.jpg
Vertical.jpg
---
A joke is a very serious thing.
User avatar
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

Postby 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?
-Marc
User avatar
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

Postby 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. :)
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 33 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 33 users online :: 0 registered, 0 hidden and 33 guests (based on users active over the past 10 minutes)
Most users ever online was 9824 on 10 Nov 2025, 04:33

Users browsing this forum: No registered users and 33 guests

Login Form