It is currently 24 May 2013, 00:07
   
Text Size

General UI support

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, moomarc, DennisBergkamp, Rob Cashwalker, Chris H., CCGHQ Admins

Re: General UI support

Postby Doublestrike » 14 Feb 2012, 06:38

Thanks. Basic functionality (background color only) returned in 14032 so at least you can work.

This is very frustrating, NONE of these errors are happening on my side. ](*,)
---
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:42

Ok. I'm back to solid color backgrounds like a previous screenshot.

I still get the exception on startup. Probably because I have no Quest Data.

This is odd because people are reporting it on some versions of Windows as well, right?

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

Re: General UI support

Postby Doublestrike » 14 Feb 2012, 06:45

Some people are (Sloth), some say it's fine (moomarc).

I'm pretty sure it has to do with the clip (setClip).

That QuestData thing is still a bug though. I'll try to repro and fix at some point.
---
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:48

Now?

EDIT - @slapshot - Bazaar bug fixed.
---
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 Hellfish » 14 Feb 2012, 08:29

At r14035, I'm seeing the background drawn on top of everything else if I open another window on top of the Forge window. I'm only seeing this on Windows XP 32-bit, *not* on Windows 7 32-bit.

Secondly, when Forge first starts the settings/avatar panel is a bit goofy. It opens on avatar selection first even if the preferences tab is shown active and stays on avatar selection even if I switch between the tabs. Also the scrollbar is missing. It all goes back to normal if I switch between the tabs and then go to another panel and back.
settingspanel.PNG


Lastly, since I don't want be *just* heaping annoying bug reports on you; On Windows 7 the UI is friggin sweet! Kudos! :mrgreen:

EDIT: Whoa, inline skin switching also took a hit.The screenshot is after trying to switch to all the different skins.
skin.PNG
----
Derp of the moment: Enchanting a Kor Spiritdancer with Dead Weight... >_>
User avatar
Hellfish
Programmer
 
Posts: 1214
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 95 times
Been thanked: 144 times

Re: General UI support

Postby Doublestrike » 14 Feb 2012, 08:47

Thanks for the kudos Hellfish, it helps (really). :pant: There's actually a few of performance changes that have gone in, with more to come, so the thing should be speeding up within a few days/weeks.

I'll attack the inline switching and avatar thing soon.

But, the other repaint issues are gone?
Last edited by Doublestrike on 14 Feb 2012, 08:52, 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 Hellfish » 14 Feb 2012, 08:50

Define "other repaint issues". I'm not sure I got in on this early enough to get anything other than what I described in the first paragraph.

Gonna test r14036 too, just because..
----
Derp of the moment: Enchanting a Kor Spiritdancer with Dead Weight... >_>
User avatar
Hellfish
Programmer
 
Posts: 1214
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 95 times
Been thanked: 144 times

Re: General UI support

Postby Doublestrike » 14 Feb 2012, 08:51

(edited above post re: skins/avatar)

Other repaint issues = visual artifacts on resize, no panels being painted, hover repaint after deck editor, the problem from

Hellfish wrote:I am seeing the same thing as Sloth.
EDIT - never mind, just re-read your post, turns out the problem isn't fixed yet. I've been at this too long, time for a break. Will be back later.

For now, putting up background-only version.
---
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 Hellfish » 14 Feb 2012, 08:55

I'm seeing nothing wrong on resize (except a little lag, but that's prolly just on my part). It *looks like* no panels are painted after I've had a fullscreen window over the Forge window. Same thing if that window is the deck editor.
----
Derp of the moment: Enchanting a Kor Spiritdancer with Dead Weight... >_>
User avatar
Hellfish
Programmer
 
Posts: 1214
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 95 times
Been thanked: 144 times

Re: General UI support

Postby Chris H. » 14 Feb 2012, 11:31

I updated to rev 14037 and see that we are now back to the background-only version.

It looks like the repaint issues are gone. That is, I can move the mouse pointer around and click on things without seeing the various components appear and then disappear during some sort of a repaint process.
User avatar
Chris H.
Forge Moderator
 
Posts: 5714
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Lion
Has thanked: 503 times
Been thanked: 332 times

Re: General UI support

Postby silly freak » 14 Feb 2012, 20:19

Doublestrike wrote:I'm pretty sure it has to do with the clip (setClip).
Without even looking at the code, my intuition says that a modification to a Graphics object breaks later painting done by swing. If that is so, do g = g.create() at the beginnign of your paintComponent() methods. That creates a delegate and will let the original Graphics unmodified.

If my wild speculation is spectacularly useless, I'm sorry...
___

where's the "trust me, that will work!" switch for the compiler?
Laterna Magica - blog, forum, project, 2010/09/06 release!
silly freak
DEVELOPER
 
Posts: 541
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 51 times
Been thanked: 14 times

Re: General UI support

Postby Doublestrike » 15 Feb 2012, 03:37

Thanks sillyfreak - actually that's already been done. But now the problem is I'm setting a clip on the newly created graphics object, which apparently is being taken by Swing and used as the main clip for the next panel drawn. So, the first one paints OK, but the next one paints in the old clip, and breaks down from there.

Right now trying to find an XP or OSX box to fix this problem on, but having trouble with Maven on the XP :( but we'll get there...
---
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. » 15 Feb 2012, 12:22

Updated to rev 14071 and now have an error:


The method repaintOnlyThisPanel() is undefined for the type new ActionListener(){}
ViewMessage.java
/ForgeSVN/src/main/java/forge/view/match
line 157
Java Problem
User avatar
Chris H.
Forge Moderator
 
Posts: 5714
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Lion
Has thanked: 503 times
Been thanked: 332 times

Re: General UI support

Postby Sloth » 15 Feb 2012, 13:10

Chris H. wrote:Updated to rev 14071 and now have an error:


The method repaintOnlyThisPanel() is undefined for the type new ActionListener(){}
ViewMessage.java
/ForgeSVN/src/main/java/forge/view/match
line 157
Java Problem
I can't compile either.
--Sloth, Supreme Bug Squasher
User avatar
Sloth
Programmer
 
Posts: 3015
Joined: 23 Jun 2009, 19:40
Has thanked: 97 times
Been thanked: 426 times

Re: General UI support

Postby Doublestrike » 16 Feb 2012, 02:33

Hmm, not sure why, but I've committed my latest ViewMessage which is fine over here. Hopefully OK now?

I'm working on a composite graphics solution for the rounded panel functionality instead of clipped graphics, should be OK soon but it's taking a little bit long.
---
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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: friarsol, slowe, Xitax and 4 guests


Who is online

In total there are 7 users online :: 3 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 177 on 10 Oct 2011, 16:37

Users browsing this forum: friarsol, slowe, Xitax and 4 guests

Login Form