General UI support
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: General UI support
by 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...
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.
A joke is a very serious thing.
-

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
by 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)
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
by 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.
A joke is a very serious thing.
-

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
by Doublestrike » 14 Apr 2012, 08:30
Bam!
:fist pump:
:champion arms:
:fist pump:
:champion arms:
---
A joke is a very serious thing.
A joke is a very serious thing.
-

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
by Doublestrike » 14 Apr 2012, 08:32
And the bonus - for Slapshot (and all you ante-ers out there), there's the new Ante display

---
A joke is a very serious thing.
A joke is a very serious thing.
-

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
by squee1968 » 14 Apr 2012, 08:41
Let me be the first of many to congratulate you.
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. 
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. 
Re: General UI support
by 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?
Haven't tried it myself yet but I will, I will. 
Weeks of work, and the commit went smoothly, so bottoms up!
PS - dual monitors, anyone?
---
A joke is a very serious thing.
A joke is a very serious thing.
-

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
by 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.
Might want a button on the tool bar that resets the display to a default layout.
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.
Might want a button on the tool bar that resets the display to a default layout.
-

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
by friarsol » 14 Apr 2012, 13:16
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?Doublestrike wrote:And the bonus - for Slapshot (and all you ante-ers out there), there's the new Ante display
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: General UI support
by Doublestrike » 14 Apr 2012, 14:46
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.Chris H. wrote:...made a real mess of the display.
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: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?
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?friarsol wrote:How does it handle multiple cards by the same player?
---
A joke is a very serious thing.
A joke is a very serious thing.
-

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
by Chris H. » 14 Apr 2012, 15:19
Doublestrike wrote: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.Chris H. wrote:...made a real mess of the display.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.
-

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
by moomarc » 14 Apr 2012, 18:20
I'm a graphic designer and 3d artist - of course I have dual monitors!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?Haven't tried it myself yet but I will, I will.
). 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
-

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
by friarsol » 14 Apr 2012, 19:16
Quite important, since I just got a Contract from Below in my QuestDoublestrike 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?
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
by 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.
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.
-

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
by Doublestrike » 15 Apr 2012, 09:01
Done (see attached pic).Chris H., moomarc wrote:...an option to reset the battlefield to a default layout...
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.
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.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.
Done (see attached pic).friarsol wrote:...label on which card is ante'd by which player...multiple cards by the same player?
Haha, I was wondering if someone would mention that.friarsol wrote:Is there a way to reorder tabs on the same Panel?
On the list.Was thankfully able to reproduce this (thanks for the screenshot) so it will be fixed too.Chris H. wrote:...the right hand panels failed to widen....
======
So, it seems to be working fairly well for everyone, just needs a little testing and maturity. Great!
---
A joke is a very serious thing.
A joke is a very serious thing.
-

Doublestrike - UI Programmer
- Posts: 715
- Joined: 08 Aug 2011, 09:07
- Location: Bali
- Has thanked: 183 times
- Been thanked: 161 times
Who is online
Users browsing this forum: No registered users and 55 guests