At this stage, Model Interfaces can be created from two Java2 classes:
ClashComponentHolder.class - a possible Java2 replacement for GameFrame.
A single frame & menu toolbar to hold multiple elements defined from:
ClashComponent.class - a holder Class for most conceivable interface components eg.
ClashListComponent to display lists of
eg. treaties or other Civs. It's very easy to setup and configure. An
interface coder just needs to send it an appropriate data array to setup
a minimalist component. I've also added ClashButtonComponent and
ClashSliderBarComponent, which can be seen in the various
screenshots. Suggestions for others welcome.
As they're both Java2, they can easily make use of Pluggable Look & Feel.
The aim was to make interface design as simple as humanly possible for
other Clash model coders, as well as offering maximum configurability for the player.
If you have the JDK1.2 installed, try downloading the following zip file (unzip & save
all the classes in the same directory; run DiplomacyUI.class) for a simple demo model interface. I know
it's brute ugly and spartan - it's just a code test and easily spruced up ;).
NB. The Components don't actually do anything as yet, I just wanted to know if this seems like a
reasonably decent way of doing an interface. As they're an extension of JComponents and
JInternalFrames, they're almost endlessly customisable eg. I have the main frame displaying a
JDesktopPane, so we can even have minimizable Components with desktop icons.
|