It is currently 08 Nov 2025, 10:14
   
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 » 21 Mar 2012, 06:51

At present, there are two different fields, they won't play together very nicely, so no.

But, when the battlefield refactor occurs, I'd like there to be targeting arrows and arcs and fireworks and dancing girls.

An intermediate solution could be a "ghost" copy of the targeted card or something...the battlefield is one of the areas I haven't touched, but it's also one of the areas that's due for a big refactor...but it's two or three "big things" down the list...
---
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 Max mtg » 22 Mar 2012, 06:10

If you would like to store zeppelin state - launched or not - that would persist across saves, create a subclass of forge.quest.data.QuestItemCondition, set up a reference to it in forge.quest.bazaar.QuestItemType - then all the new models for selected itemtype will have the type of model you need.

To access fields of the special model use forge.quest.data.QuestAssets.getItemCondition(QuestItemType)
Single class for single responsibility.
Max mtg
Programmer
 
Posts: 1997
Joined: 02 Jul 2011, 14:26
Has thanked: 173 times
Been thanked: 334 times

Re: General UI support

Postby Doublestrike » 24 Mar 2012, 10:51

Thanks Max, was wondering a bit about that. I'll put that change on the list, will get to it eventually.
---
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 Apr 2012, 08:30

Bam!

:fist pump:

:champion arms:
Attachments
screenshot.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 » 14 Apr 2012, 08:32

And the bonus - for Slapshot (and all you ante-ers out there), there's the new Ante display

:mrgreen:
Attachments
ante.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 squee1968 » 14 Apr 2012, 08:41

Let me be the first of many to congratulate you. =D> And to thank you for all your hard work and dedication to this project. I was going to go to sleep, but now I have to stay awake for a few more hours just so I can try this out. 8-[
squee1968
 
Posts: 254
Joined: 18 Nov 2011, 03:28
Has thanked: 110 times
Been thanked: 45 times

Re: General UI support

Postby Doublestrike » 14 Apr 2012, 08:45

Cheers! Sorry to keep you up lol. I'm super stoked!

Weeks of work, and the commit went smoothly, so bottoms up!

PS - dual monitors, anyone? :wink: Haven't tried it myself yet but I will, I will. :)
---
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 Apr 2012, 13:00

I wanted to tryout the new battlefield so I started a constructed mode match and forge freezes at "Loading new game..." screen.

I then tried a quest match and did not experience the same problem, it looks OK. I was able to drag various tabs around and made a real mess of the display. :mrgreen:

Might want a button on the tool bar that resets the display to a default layout.
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 » 14 Apr 2012, 13:16

Doublestrike wrote:And the bonus - for Slapshot (and all you ante-ers out there), there's the new Ante display

:mrgreen:
The Ante's should probably have a label on which card is ante'd by which player. How does it handle multiple cards by the same player?
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 » 14 Apr 2012, 14:46

Chris H. wrote:...made a real mess of the display.
Rats. Shoulda known there would be porting issues...anyway, if you could post a screenshot or some details, might point to the problem. From the last rounded corner fiasco, I've got an OSX install ready to go, but gotta put some time in to figuring out the dual boot (and then the OS). For now it's still shot-in-the-dark debugging. :( The problem may be in SResizeUtil.resizeWindow()...

friarsol wrote:The Ante's should probably have a label on which card is ante'd by which player. How does it handle multiple cards by the same player?
Yep, can do. At this stage it's pretty much blehhhh commit ASAP before I have to update 80 files (distributed source control, anyone?)

friarsol wrote:How does it handle multiple cards by the same player?
Uh, it doesn't (yet). Hadn't crossed me mind. 'Twill, in time (not a quick mover, that mind o' mine). Otherwise, works good on your Windows box?
---
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 Apr 2012, 15:19

Doublestrike wrote:
Chris H. wrote:...made a real mess of the display.
Rats. Shoulda known there would be porting issues...anyway, if you could post a screenshot or some details, might point to the problem. From the last rounded corner fiasco, I've got an OSX install ready to go, but gotta put some time in to figuring out the dual boot (and then the OS). For now it's still shot-in-the-dark debugging. :( The problem may be in SResizeUtil.resizeWindow()...
 
OH, I did not notice any bugs in the way that it worked, but it does allow for operator mistakes. I clicked and dragged without knowing what the result would be and I accidentally ended up with more panels the I had intended.

With the tabs on the top the panels on the left tend to be wider than the previous battlefield and I was trying to find some way to narrow the left hand portion in order to increase the width of the battlefield.

In an effort to move panels around to different areas I find that I may need an option to reset the battlefield to a default layout as this would allow me to experiment while learning. I could then tap a reset button and throw away my panels moves and try again. :)
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 » 14 Apr 2012, 18:20

Doublestrike wrote:Cheers! Sorry to keep you up lol. I'm super stoked!

Weeks of work, and the commit went smoothly, so bottoms up!

PS - dual monitors, anyone? :wink: Haven't tried it myself yet but I will, I will. :)
I'm a graphic designer and 3d artist - of course I have dual monitors! :mrgreen: I'm loving the draggable areas, but you'll have to add a layout reset option somewhere because it is possible to break it (I may or may not have done that already 8-[ ). Not sure if the problem is reproducable yet, but I know at the time I was dragging the second player area to the left of all the other panels so that I can have my battlefield on the left monitor and info on the right one.

EDIT: It might be dual monitor issues. If you reshuffle the panels with the display stretched across two monitors then resize the window, panels disappear. If you then drag panels any further it causes a crash.

EDIT 2: You also have panels disappearing if you change from full screen to windowed mode so it doesn't look like a daul monitor issue. :(
-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 » 14 Apr 2012, 19:16

Doublestrike wrote:Uh, it doesn't (yet). Hadn't crossed me mind. 'Twill, in time (not a quick mover, that mind o' mine). Otherwise, works good on your Windows box?
Quite important, since I just got a Contract from Below in my Quest :D

Yea looks good so far, haven't got to play with it much yet. Message Report is probably too long. Forcing the 4th tab on that box to remain hidden because of tab length on my Netbook.

Is there a way to reorder tabs on the same Panel?
friarsol
Global Moderator
 
Posts: 7593
Joined: 15 May 2010, 04:20
Has thanked: 243 times
Been thanked: 965 times

Re: General UI support

Postby Chris H. » 14 Apr 2012, 21:44

I spent some time moving panels around in the quest mode battlefield display and noticed a couple of things.

1. The text in the Message Report panel is too small.

2. I moved the Ante panel over to the right and joined it with the Card Picture panel. I moved the Dock panel to the right and below the Card Picture + Ante panel. I then attempted to narrow the three panels in the middle and was able to so ... but the right hand panels failed to widen. This may be related to my moving over the Ante + Dock panels.
 
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 » 15 Apr 2012, 09:01

Chris H., moomarc wrote:...an option to reset the battlefield to a default layout...
Done (see attached pic).

moomarc wrote:It might be dual monitor issues. If you reshuffle the panels with the display stretched across two monitors then resize the window, panels disappear. If you then drag panels any further it causes a crash.
moomarc wrote:You also have panels disappearing if you change from full screen to windowed mode so it doesn't look like a daul monitor issue. :(
OK thanks, I'll get this stuff fixed soon. Haven't had time to test/fix on multiple machines yet, just my dev box here.

friarsol wrote:...label on which card is ante'd by which player...multiple cards by the same player?
Done (see attached pic).

friarsol wrote:Is there a way to reorder tabs on the same Panel?
Haha, I was wondering if someone would mention that. 8-[ On the list.

Chris H. wrote:...the right hand panels failed to widen....
Was thankfully able to reproduce this (thanks for the screenshot) so it will be fixed too.

======

So, it seems to be working fairly well for everyone, just needs a little testing and maturity. Great!
Attachments
ante.jpg
ante.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

PreviousNext

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 55 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 55 users online :: 0 registered, 0 hidden and 55 guests (based on users active over the past 10 minutes)
Most users ever online was 9298 on 10 Oct 2025, 12:54

Users browsing this forum: No registered users and 55 guests

Login Form