It is currently 18 Apr 2024, 10:44
   
Text Size

dockable side panels

Post MTG Forge Related Programming Questions Here

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

dockable side panels

Postby silly freak » 29 Jun 2009, 20:23

http://mtgrares.blogspot.com/2009/04/new-version.html
Tim said...

Feature request:

Is there any way the right hand panel (the one that contains card information and picture) could be removed?

Could it:
be incorporated into a different column?
be changed into a panel that only appears while your mouse is over a card?
be made dockable?
be made minimizable?

It would give you a lot more play area real-estate...
April 27, 2009 7:28 AM
i thought that a possible way to do this would be JToolBar: It allows to place things dockable in the border of a border layout, with the option for moving it out of the window (enabling more efficient use of multi-screen environments)
however, since this is not the intention of JToolBar, the options are limited: at each side, there can only be one tool bar.

it can be easily incorporated in the code, by:
snippets from GuiDisplay3#initComponents()
Code: Select all
...

JPanel left = ...
...
JToolBar bar = new JToolBar();
bar.add(left);
getContentPane().add(bar, BorderLayout.WEST);

...

JPanel right = ...
...
bar = new JToolBar();

bar.add(right);

getContentPane().add(bar, BorderLayout.EAST);

...
a real docking framework would be better of course. there are a few out there with wide range in scope and licensing. on the other side it needs more effort. promising options are
https://jdocking.dev.java.net/
http://www.infonode.net/index.html?idw
haven't looked at any of them though
___

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: 598
Joined: 26 Mar 2009, 07:18
Location: Vienna, Austria
Has thanked: 93 times
Been thanked: 25 times

Re: dockable side panels

Postby mtgrares » 30 Jun 2009, 16:29

I like the idea of dockable side panels. I've been thinking about trying to update the gui. Since many of the cards use JOptionPane no really big improvements could be made like using a videogame graphics library. I could update the mana pool and maybe let the user select a background. It would be nice if the right "card detail" panel would slide in when the mouse is over a card and then slide out.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: dockable side panels

Postby Rob Cashwalker » 30 Jun 2009, 19:23

I'd even suggest (if feasable) that the mouse-over effect be a pop-up panel with the text and graphic. Just embed the existing panels inside another, which is hidden by default. Then when mouse-over a card, it moves the panel to the mouse location and is unhidden. Mouse moves off the card, the panel is hidden again.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: dockable side panels

Postby mtgrares » 02 Jul 2009, 18:45

Yeah displaying the full size card image when your mouse is over a card sounds good. I'm not sure whether to show both things, and by "both" I mean the card text as MTG Forge sees it and the card image.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Re: dockable side panels

Postby Rob Cashwalker » 02 Jul 2009, 20:48

The MTGForge text includes important info like counters and damage... it's vital. The card image can be scaled down a bit, and they can be side-by-side.
The Force will be with you, Always.
User avatar
Rob Cashwalker
Programmer
 
Posts: 2167
Joined: 09 Sep 2008, 15:09
Location: New York
Has thanked: 5 times
Been thanked: 40 times

Re: dockable side panels

Postby DennisBergkamp » 03 Jul 2009, 08:03

These are all good ideas. Too bad coding GUIs in Java is such a headache. Not much unlike repeatedly slamming your head against a brick wall ](*,)
User avatar
DennisBergkamp
AI Programmer
 
Posts: 2602
Joined: 09 Sep 2008, 15:46
Has thanked: 0 time
Been thanked: 0 time


Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 34 guests


Who is online

In total there are 34 users online :: 0 registered, 0 hidden and 34 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 34 guests

Login Form