[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-gnubg] predefined board designs
From: |
Joern Thyssen |
Subject: |
[Bug-gnubg] predefined board designs |
Date: |
Sat, 30 Nov 2002 11:08:46 +0000 |
User-agent: |
Mutt/1.4i |
Hi all,
There is new a tab in the Appaerance Dialog with predefined board
designs.
It's quite rudimentary: there is an XML file with the board designs (see
snippet below). The file includes the title and author of the board
designs, as well as the path to a screen-shot of the board designs.
For those of you using cvs, please do "cvs update -d" to get the new
directory.
So far I've included 4 designs: the default settings as well as the 3
designs from Albert Silver's article (Albert, if you have some titles
for your board designs, please let me know!).
If any of you have some other board designs please send me the relevant
data, so I can add it to the XML file!
Possible improvements:
* draw the board design instead of using a screen shot for preview
(this seems to be a bit hard... Gary, I need some help here :-))
* possibility to add the current design to the list
* possibility to remove a design from the list
* possibility to save the current list of designs
(on un*x systems the user will normally not have write access to
PKGDATADIR/boards/boards.xml, so how do we update the board design
file? By having two files? One with system wide settings and one with
user settings? Also, we starting to have quite a few .gnubg* files.
Maybe we should consider making a directory .gnubg which can hold
these files?)
Jørn
Example from XML file:
<board-design>
<about>
<title>Default setting</title>
<author>The GNU Backgammon Team</author>
<preview-file>boards/default.xpm</preview-file>
</about>
<design>
board=#2F5F2F;0.20
border=#003F00
translucent=y
wood=alder
hinges=y
light=150;50
shape=0.5
chequers0=#F12525;0.90;1.50;0.20;3.00
chequers1=#00000B;0.50;1.50;1.00;30.00
dice0=#F12525;0.20;3.00;y
dice1=#00000B;1.00;30.00;y
dot0=#A4A4A4
dot1=#A4A4A4
cube=#D7D7D7
points0=#FF5F5F;0.20
points1=#BFBFBF;0.20
</design>
</board-design>
- [Bug-gnubg] predefined board designs,
Joern Thyssen <=