With the new saved-game metadata facilities, one feature that would be nice a
nd not too terribly difficult to implement is a per saved game window size (s
aved each time the window closes). As I'm one that subscribes to the code-it
-yourself camp, I am probably 50% of the way there, but the SAX parser is sty
mieing me. (I've only done XML in the context of hand-coding SVG and boost::
serialize)
Just to be clear, I'm planning on including width/height but not x/y
location. I've personally burned too many times by switching from a
xinerama screen to my laptop screen and having stupid app/window
manager
interactions popping the window up off the screen.
(I haven't written Java in almost a decade), but not the first (I
can create the attribute but have no idea how to extract them).
Just to be clear, I'm planning on including width/height but not x/y
location. I've personally burned too many times by switching from a
xinerama screen to my laptop screen and having stupid app/window manager
interactions popping the window up off the screen.
Is there a preference for having width/height as attributes to a single
element or two elements? I'm pretty sure I have a handle on accomplishing
the second (I haven't written Java in almost a decade), but not the first (I
can create the attribute but have no idea how to extract them). Feel free
to ignore my blathering, as this is more thinking as I learn this piece of
the codebase as opposed to any true cry for help.
Hi Jeffrey,(I haven't written Java in almost a decade), but not the first (I
can create the attribute but have no idea how to extract them).
Have a look at ModuleMetaData.read() and AbstractMetaData.XMLHandler.
If you are saving the Window positions for restitution when the save game is
loaded, then it is a user preference and is different for each player. One wi
ll want them one way, your opponent differently. You will need multiple entri
es for window size, identified by player name, and maintain other players win
dow sizes that you load when read a saved game.
Users browsing this forum: No registered users and 2 guests