General UI support
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: General UI support
by Doublestrike » 30 Apr 2012, 08:34
@sol, @sloth - noted, but may be a while before fix. Right now crankin' hard on the deck editor and it's pretty sweet, don't want distractions. T minus next week!
---
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 Milod » 30 Apr 2012, 19:29
why bg_match image doesent fill the empty spaces on left and right doesent scall 100% on weight o screen tried to make image alot bigger but no efect
can someone help out
can someone help out
Re: General UI support
by moomarc » 30 Apr 2012, 20:49
By default the image will scale to fit the full image. What we'd need is a fit-to-width option. What you can do is apply the stretch-to-fit option in preferences, or if you have a graphics editor (which I assume you do from previous comments and the fact that you've tried resizing) is just to crop the image to a wider format. If you need any further help let me know and I'll try help. Ideally though at some stage Doublestrike might find time to make each of these options available:Milod wrote:why bg_match image doesent fill the empty spaces on left and right doesent scall 100% on weight o screen tried to make image alot bigger but no efect
can someone help out
- Fit-to-Width
- Fit-to-Height
- Stretch fit
- Best fit (current default)
- Original Size
-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 Sloth » 30 Apr 2012, 21:35
I've just noticed:
Whenever i restart forge my quest opponents are refreshed. Shouldn't they be fixed until a match is played?
Whenever i restart forge my quest opponents are refreshed. Shouldn't they be fixed until a match is played?
-

Sloth - Programmer
- Posts: 3498
- Joined: 23 Jun 2009, 19:40
- Has thanked: 125 times
- Been thanked: 507 times
Re: General UI support
by Chris H. » 30 Apr 2012, 21:45
Sloth wrote:I've just noticed:
Whenever i restart forge my quest opponents are refreshed. Shouldn't they be fixed until a match is played?
Yeah, I think that you are right about that.
Quitting forge and then restarting should not give us a free Zeppelin like effect.
-

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 Milod » 02 May 2012, 01:15
in dev mode(cheats) when i disable play unlimited lands it stil ables me to play unlimited lands even if the button is marked as black to disable play unlimited lands each turn its weird using latest forge
Re: General UI support
by Milod » 05 May 2012, 02:03
sometimes i can see for about a second a card in the card display that is in ai's hand why is that? happens often
Re: General UI support
by Doublestrike » 07 May 2012, 00:05
Hi Milod, thanks for the input. I'll address this stuff in a while, I'm working on the editor right now and I don't want to get distracted with another problem.
I thought the lands problem was fixed, though, maybe your version isn't up to date? Anyway I'll have a look eventually (or someone else can).
I thought the lands problem was fixed, though, maybe your version isn't up to date? Anyway I'll have a look eventually (or someone else can).
---
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 Milod » 07 May 2012, 08:11
problem is still there and i got latest versionDoublestrike wrote:Hi Milod, thanks for the input. I'll address this stuff in a while, I'm working on the editor right now and I don't want to get distracted with another problem.
I thought the lands problem was fixed, though, maybe your version isn't up to date? Anyway I'll have a look eventually (or someone else can).
Re: General UI support
by moomarc » 07 May 2012, 11:16
This feature is working correctly for me.Milod wrote:in dev mode(cheats) when i disable play unlimited lands it stil ables me to play unlimited lands even if the button is marked as black to disable play unlimited lands each turn its weird using latest forge
-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 friarsol » 07 May 2012, 12:05
I think the issue isn't that the button doesn't work, it's that it doesn't save your settings, so when you go back into the game the Unlimited Lands is Enabled by default even if it was disabled the last time you played.moomarc wrote:This feature is working correctly for me.Milod wrote:in dev mode(cheats) when i disable play unlimited lands it stil ables me to play unlimited lands even if the button is marked as black to disable play unlimited lands each turn its weird using latest forge
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: General UI support
by 7Durandal7 » 08 May 2012, 21:49
A rather minor UI bug has been appearing for me, where the phase labels don't update when changing phase, until you hover the mouse over them or one of the cards. This issue is especially bothersome when using a custom layout. See the attached screenshot for an example.
I have been delving into the source code a bit, but I am not well versed in Java or GUIs (c and c++ are what I work with occasionally), and I don't really know how to push code to the SVN repo. I was able to remedy the issue described above by adding one line to VField.java in forge.gui:
I have been delving into the source code a bit, but I am not well versed in Java or GUIs (c and c++ are what I work with occasionally), and I don't really know how to push code to the SVN repo. I was able to remedy the issue described above by adding one line to VField.java in forge.gui:
- Code: Select all
public void setActive(final boolean b) {
this.active = b;
/** FOLLOWING LINE NEW */
this.repaintOnlyThisLabel();
}
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Re: General UI support
by Doublestrike » 09 May 2012, 00:11
That's exactly how to do it (probably, without looking at it). Thanks! I'll get around to a commit soonish, along with this other stuff.
EDIT - interesting layout! I've been partial to the "massive picture" style myself lately.
EDIT - interesting layout! I've been partial to the "massive picture" style myself lately.
---
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 7Durandal7 » 09 May 2012, 00:18
I also forgot to mention, the same kind of bug appears when the stack should update (particularly after one item on the stack is resolved but more stack remains to resolve). I can't quite figure the source out for that though.
EDIT: I think I've figured this one out too. The stack panel needs to be repainted after it is modified. I added the following line to the very end of the updateStack() function in Vstack.java (a part of the forge.gui.match.views package)
EDIT: I think I've figured this one out too. The stack panel needs to be repainted after it is modified. I added the following line to the very end of the updateStack() function in Vstack.java (a part of the forge.gui.match.views package)
- Code: Select all
parentCell.getBody().repaint();
Last edited by 7Durandal7 on 09 May 2012, 05:36, edited 1 time in total.
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Re: General UI support
by 7Durandal7 » 09 May 2012, 03:37
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.
- Attachments
-
match_preferred.zip- (444 Bytes) Downloaded 200 times
-

7Durandal7 - Posts: 15
- Joined: 04 May 2012, 04:38
- Has thanked: 7 times
- Been thanked: 9 times
Who is online
Users browsing this forum: No registered users and 27 guests