It is currently 16 Jul 2025, 11:35
   
Text Size

General UI support

Post MTG Forge Related Programming Questions Here

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

Re: General UI support

Postby Doublestrike » 13 Feb 2012, 13:10

Hmm, that's a good clue right there.

The repaint is up (r14008), probably won't work. I've got work in the morning so can't continue this excellent repartee :( but it's given me a new place to start looking - that button problem. Shooting in the dark over here, maybe will hit something :/

I think when the UI state is changed in the frame, perhaps things aren't validating correctly - could someone perhaps try various combinations of the following, in FControl, at the end of the "changeState" method:

Singletons.getView().validate();
Singletons.getView().pack();
Singletons.getView().repaint();

...which will be faster than if I commit/error/commit/error etc...then I'll cross that stuff off my suspects.
Last edited by Doublestrike on 13 Feb 2012, 13:14, edited 1 time in total.
---
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 Doublestrike » 13 Feb 2012, 13:11

Chris H. wrote:
Doublestrike wrote:Jiminy Christmas. OK back to it then. I did the debugging on a 64 bit (with 1.7 JDK I think, lazy to check)
`
Before we get too far into other hypotheticals, would it be worth the effort to see which version of java you are using?

Several issues in recent months appear to have been caused by a few people using an early version of java 7 and there may be incompatibilities. Many of us are still at java 6 and us Mac folks have no other option at this time but java 6.
Pretty sure that machine is 1.7. This one I'm on now is...JDK SE 6.27.

===

Incidentally, known bug - quest pets don't have summoning sickness currently. This is a result of r14000 and I'll fix soon.
---
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. » 13 Feb 2012, 13:21

Doublestrike wrote:Hmm, that's a good clue right there.

The repaint is up (r14008), probably won't work. I've got work in the morning so can't continue this excellent repartee :( but it's given me a new place to start looking - that button problem. Shooting in the dark over here, maybe will hit something :/

I think when the UI state is changed in the frame, perhaps things aren't validating correctly - could someone perhaps try various combinations of the following, in FControl, at the end of the "changeState" method:

Singletons.getView().validate();
Singletons.getView().pack();
Singletons.getView().repaint();

...which will be faster than if I commit/error/commit/error etc...then I'll cross that stuff off my suspects.
`
r14008 did not fix the problem.

The UI state change may be a good lead as I see things appearing and disappearing when I move the mouse pointer and/or click on components.

I see that we have these two lines at the end of FControl:

Singletons.getView().validate();
Singletons.getView().repaint();
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 Sloth » 13 Feb 2012, 13:21

Chris H. wrote:
Doublestrike wrote:Jiminy Christmas. OK back to it then. I did the debugging on a 64 bit (with 1.7 JDK I think, lazy to check)
`
Before we get too far into other hypotheticals, would it be worth the effort to see which version of java you are using?

Several issues in recent months appear to have been caused by a few people using an early version of java 7 and there may be incompatibilities. Many of us are still at java 6 and us Mac folks have no other option at this time but java 6.
I'm using r14008 with Windows XP and Java 1.6 and those artifacts are still there (exactly like Chris describes).
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. » 13 Feb 2012, 13:24

Doublestrike wrote:Singletons.getView().validate();
Singletons.getView().pack();
Singletons.getView().repaint();
`
Same graphics issues but now the window is resized to the min 800 x 600 size. :(
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 Chris H. » 13 Feb 2012, 13:39

Chris H. wrote:
Doublestrike wrote:Singletons.getView().validate();
Singletons.getView().pack();
Singletons.getView().repaint();
`
Same graphics issues but now the window is resized to the min 800 x 600 size. :(
`
I tried a number of combinations and not just the three together. The results do not appear to change anything except that the .pack() command resizes the window.
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 friarsol » 13 Feb 2012, 14:56

Doublestrike wrote:Incidentally, known bug - quest pets don't have summoning sickness currently. This is a result of r14000 and I'll fix soon.
Sloth changed this so cards like Sleeper Agent would lose summoning sickness appropriately. I think there needs to be a way that cards starting on the Battlefield via Forge Rules don't lose summoning sickness on their first turn.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby Doublestrike » 13 Feb 2012, 23:58

@sol - ok great thanks, one less "oh no".

@Chris - thanks, those were the expected results ("pack" forces the minimum size on everything). Crossed off.

Next attempt is up.

Had a look at the old button problem and nothing of interest showed itself. Will have to install a virtual machine and develop on that to fix this. Does anyone have any suggestions? Sort of at the end of my rope, mostly because I can't repro :/

The boxes I'm currently testing on are Win7x64 JRE 1.7.0 and Win7x86 JRE 1.6.27.
---
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 Doublestrike » 14 Feb 2012, 02:56

OK, I assume that last attempt (r14025) did not take?

I'm going to at least provide some functionality, a little at a time, and we'll see where it breaks. This way, afflicted users can still work in the meantime.

So, r14026 is the panel with only background color drawn.

There should be:
- rounded panels
- no border
- theme background color visible
- hover effects enabled
- no visual artifacts on resize
- no visual artifacts after deck editor open/close

Is everyone ok?
Attachments
match.jpg
home.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 Chris H. » 14 Feb 2012, 03:09

Doublestrike wrote:OK, I assume that last attempt (r14025) did not take?

I'm going to at least provide some functionality, a little at a time, and we'll see where it breaks. This way, afflicted users can still work in the meantime.

So, r14026 is the panel with only background color drawn.

There should be:
- rounded panels
- no border
- theme background color visible
- hover effects enabled
- no visual artifacts on resize
- no visual artifacts after deck editor open/close

Is everyone ok?
`
I updated to rev 14025 and Bugfix attempt #6 does not appear to make much of a difference. I think that everyone else is seeing the same sort of graphic artifact issues that I am seeing. I fear that the rest of us are kind of at a loss.

I then updated to 14026 and things look just like what you are now seeing. :)
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 Doublestrike » 14 Feb 2012, 03:18

Yeah, apparently some see the visual artifacts, and some don't... :(

OK well that's good then about 14026. Bumping up to the next level.

14027: Same as before, but now with a background texture.
Attachments
match.jpg
home.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 Chris H. » 14 Feb 2012, 03:26

Doublestrike wrote:OK well that's good then about 14026. Bumping up to the next level.

14027: Same as before, but now with a background texture.
`
14027 has brought back the problem again:


Edit:


It is getting late in my time zone and my wife says that it is time to get some sleep. :)

I will check back in tomorrow when I get up.

`
Attachments
Screen Shot.jpg
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 Doublestrike » 14 Feb 2012, 03:53

Ah HAH - it's the clip then. Like a breath of fresh air. Thanks Chris.
---
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 Doublestrike » 14 Feb 2012, 06:19

I think I've got it now. How does r14030 look?
---
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 slapshot5 » 14 Feb 2012, 06:31

Not good:

Exception | Open
This is a Crash Report. An error has occurred. Please save this message to a file.
Please follow the instructions at this address to submit this Crash Report, plus what you were doing at the time:
http://tinyurl.com/3zzrnyb
Reporting bugs in Forge is very important. We thank you for your time.

null


Version:
Forge version SVN

OS: Mac OS X Version: 10.6.8 Architecture: x86_64

Java Version: 1.6.0_29 Vendor: Apple Inc.

Detailed error trace:
java.lang.NullPointerException
at forge.view.bazaar.ViewStall.updateStall(ViewStall.java:147)
at forge.view.ViewBazaarUI$2.run(ViewBazaarUI.java:77)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:677)
at java.awt.EventQueue.access$000(EventQueue.java:85)
at java.awt.EventQueue$1.run(EventQueue.java:638)
at java.awt.EventQueue$1.run(EventQueue.java:636)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:647)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Screen shot 2012-02-14 at 12.31.49 AM.png

-slapshot5
slapshot5
Programmer
 
Posts: 1391
Joined: 03 Jan 2010, 17:47
Location: Mac OS X
Has thanked: 25 times
Been thanked: 68 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 30 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 30 users online :: 0 registered, 0 hidden and 30 guests (based on users active over the past 10 minutes)
Most users ever online was 7303 on 15 Jul 2025, 20:46

Users browsing this forum: No registered users and 30 guests

Login Form