It is currently 08 Sep 2025, 06:28
   
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 » 06 Feb 2012, 00:11

Roujin wrote:weird morphing
Chris H. wrote:Resizing
The resizing is known, and will be addressed at some point.

The morphing is because the panels are re-used instead of creating new instances. I'll be focusing a little more on performance of the UI soon, which will mean changes like not creating new instances of panels and labels everywhere, and hopefully reusing the ones we have.

I'm looking to eliminate those few seconds of transition in between states, while the UI creates itself. Also going to be cleaning out the old UI code. Anyway, the problem will be around for a week or two while I make this change, but per usual, I will try to make it worth the wait.
---
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 friarsol » 07 Feb 2012, 02:23

Computer's "Flashback" button shows me all cards in AIs graveyard, not all cards he can cast/activate.
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 » 08 Feb 2012, 00:09

friarsol wrote:Computer's "Flashback" button shows me all cards in AIs graveyard, not all cards he can cast/activate.
Should be fixed now.
---
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. » 08 Feb 2012, 16:11

I noticed a minor display issue in quest mode, hope that it is easy to fix. :)

I have downloaded all of the quest images and just now checked to verify. The grey question mark icon is not displaying for the Mystery Event opponent. I see that it is now included with the sprite_icons.png file.

I wonder if the real deck description should be displayed for a Mystery Event opponent. We could either have no description or we could come up with some sort of a generic description.
`
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 » 09 Feb 2012, 00:48

That's a funny one - apparently it's actually for Chief Clancy Wiggum, who's missing the [duel] tag (...hate to open an old can of worms, but it really seems that that information belongs in meta) and also the icon

"Chief Clancy Wiggum" | Open
[metadata]
Name=Chief Clancy Wiggum 1
DisplayName=Chief Clancy Wiggum
Difficulty=easy
Description=UG Flashback deck
Deck Type=constructed
Icon=
[main]
10 Island
10 Forest
4 Seaside Citadel
4 Quiet Speculation
1 Cephalid Vandal
1 Hermit Druid
3 Mental Note
2 Mulch
1 Think Tank
1 Strategic Planning
1 Runic Repetition
1 Deranged Assistant
1 Worry Beads
4 Deep Reconnaissance
1 Dematerialize
1 Think Twice
1 Grasp of Phantoms
1 Silent Departure
1 Deep Analysis
1 Fervent Denial
1 Moment's Peace
1 Call of the Herd
1 Beast Attack
1 Acorn Harvest
1 Chatter of the Squirrel
1 Elephant Ambush
1 Grizzly Fate
1 Howling Gale
1 Folk Medicine
1 Travel Preparations
[sideboard]


"Correct format" | Open
[duel]
[metadata]
Name=Cave Troll 3
Title=Cave Troll
Difficulty=hard
Description=Mono B Quest for the Nihil Stone deck with The Rack, Bottomless Pit and Nyxathid
Icon=Cave Troll.jpg
Deck Type=constructed
[main]
2 Chainer's Edict|TOR
2 Go for the Throat|MBS
3 Ravenous Rats|10E
3 Null Brooch|EXO
4 Nyxathid|CFX
2 Executioner's Capsule|ALA
4 Quicksand|WWK
1 Liliana Vess|M11
3 The Rack|TSB
3 Guul Draz Specter|ZEN
19 Swamp|MBS
3 Bottomless Pit|STH
2 Hymn to Tourach|FEM
2 Inquisition of Kozilek|ROE
2 Grasp of Darkness|SOM
2 Cunning Lethemancer|ALA
3 Quest for the Nihil Stone|WWK
[sideboard]


The "Mystery Event" was there for graceful degredation for a problem exactly like this (win!).

These two problems are fixed.

Regarding the icon, if "Unknown.jpg" icon is included in the quest icons (I don't think it is) it will be found...may as well throw it in since a String filename is needed, not an icon or an image. Would need some refactoring to allow this, I think, so easiest just to include the 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 Doublestrike » 11 Feb 2012, 12:06

The "too sticky combat panel" should be fixed now.

Also, a major performance bottleneck was just eliminated - you should hopefully notice a speedup in the match UI.

Please observe and let me know if there is any unwanted behavior.
---
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. » 11 Feb 2012, 13:03

I updated my local copy to rev 13962 and started forge. There appears to be some sort of a stability issue graphics wise. Moving my mouse pointer over the various components is causing them to appear and disappear with interesting color changes. :)
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 » 11 Feb 2012, 13:49

Chris H. wrote:I updated my local copy to rev 13962 and started forge. There appears to be some sort of a stability issue graphics wise. Moving my mouse pointer over the various components is causing them to appear and disappear with interesting color changes. :)
I can confirm this. When i click on "Download LQ Set Pictures" and close the window that pops up, a differently colored artifact is left where the window was.
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 slapshot5 » 11 Feb 2012, 14:34

Yeah, I would guess I'm seeing the same thing Chris is describing. It seems slower too, but maybe that's all related somehow.

-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 Chris H. » 11 Feb 2012, 14:43

Yeah, it does look strange. :)

The display also changes as I move the mouse pointer and click on the various components.
`
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 moomarc » 11 Feb 2012, 14:48

I'm using the Dark Ascension skin and not getting this problem. But maybe its OS specific? I'm on Windows 7. (Edit: Tested with the default skin and I still don't have the skinning problem. Looking at Chris's screenshot though It seems that the panel isn't clearing properly before its redrawn. So the buttons appear to fade because of the transparency of the skin's 'theme' colour swatch. Its similar to what used to happen to me when I used a personalised skin with a semi-opaque zebra swatch. As you scrolled the deck lists I'd get this type of behaviour.)

Then on another topic though, I just picked up a small UI update bug. If you try start a constructed game with too many colours selected (eg 3xRandom, 3xselected colours) the start button doesn't reset after the error pop-up. Just the start load bar remains with nowhere to click to start the game after you've corrected your selection, so you have to restart Forge.
-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. » 11 Feb 2012, 15:55

I changed from the default skin to the Dark Ascension skin and I am still getting the same 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 friarsol » 11 Feb 2012, 23:33

We still have the problem with the UI where Mouse Clicks will Click "on" the last thing selected, even if you are no longer selecting them. Before the action gets passed through to the card, we should probably double-check that we're still actually hovered over that card when clicking.
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby Roujin » 12 Feb 2012, 01:20

I thought this could be a fun little task for me where I can learn a bit about the forge codebase at the same time.


So here's a fix as a SVN patch.. although it might be quicker to just copy paste the fix. ControlField.java, line 271 is the culprit.

It's using the detail area's "current card" as the card to handle the mouse click. I guess there was a time when the detail area only showed cards' details as long as you're hovering over them and back then everything was fine. But when the detail area was changed to keep displaying the last hovered-over card, this bug started showing up.

I changed that to the function call that is also used a few lines above in the maCardOver adapter, to set the detail area's current card in the first place. Works fine now, no more accidental playing wrong land / targeting wrong stuff now. :)


edit: by hand probably much quicker than downloading and applying the patch, so:
Code: Select all
(ControlField.java, line 271)
-                final Card c = t.getDetailController().getCurrentCard();
+                final Card c = ControlField.this.view.getTabletop().getCardFromMouseOverPanel();
Attachments
forge_fix_card_click_r13971.txt
(886 Bytes) Downloaded 271 times
Roujin
 
Posts: 75
Joined: 01 Nov 2011, 21:58
Has thanked: 6 times
Been thanked: 13 times

Re: General UI support

Postby friarsol » 12 Feb 2012, 01:31

Someone sign Roujin up for commit status already, he clearly wants to directly spend his free time on the project, so we should oblige him :D
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 42 guests

Main Menu

User Menu

Our Partners


Who is online

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

Login Form