It is currently 10 Nov 2025, 23:27
   
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 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.
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 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
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: General UI support

Postby moomarc » 30 Apr 2012, 20:49

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
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:
- Fit-to-Width
- Fit-to-Height
- Stretch fit
- Best fit (current default)
- Original Size
-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 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?
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: General UI support

Postby 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.
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 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
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: General UI support

Postby 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
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: General UI support

Postby 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).
---
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 Milod » 07 May 2012, 08:11

Doublestrike 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).
problem is still there and i got latest version
Milod
 
Posts: 360
Joined: 20 Jul 2011, 08:57
Has thanked: 4 times
Been thanked: 5 times

Re: General UI support

Postby moomarc » 07 May 2012, 11:16

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
This feature is working correctly for me.
-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 friarsol » 07 May 2012, 12:05

moomarc wrote:
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
This feature is working correctly for me.
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.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby 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:
Code: Select all
        public void setActive(final boolean b) {
            this.active = b;
            /** FOLLOWING LINE NEW */
            this.repaintOnlyThisLabel();
        }
Again, I really don't know a whole lot about how Forge works, or Java for that matter, but it makes sense to me that we would want to refresh the phase label when a new phase is made active.
Attachments
screenshot.png
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 » 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.
---
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 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)

Code: Select all
parentCell.getBody().repaint();
Maybe I should look into how to work SVN, haha.
Last edited by 7Durandal7 on 09 May 2012, 05:36, edited 1 time in total.
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 » 09 May 2012, 03:37

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/.
Attachments
match_preferred.zip
(444 Bytes) Downloaded 200 times
User avatar
7Durandal7
 
Posts: 15
Joined: 04 May 2012, 04:38
Has thanked: 7 times
Been thanked: 9 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 27 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 27 users online :: 0 registered, 0 hidden and 27 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 27 guests

Login Form