- Change master sites, add icons - Take maintainership - Remove DEPRECATED, EXPIRATION_DATE - Add dependency for x11/xdialog - Add USE_CSTD=gnu89 - Support STAGEDIR - Remove tutorial* from DOCS, SH scripts which are used to learn how to use XBattle - Add Desktop entry file - Simplify installation handling - Fix MAN to install in man6 - Recreate patch with make makepatch, fix MAN to install in man6 - Add patches, use some Debian patches, fix bad C code and video (Pseudo Color), - Add files/xbattle-menu.in for Desktop with Xdialog - Change pkg-descr, add WWW - Change pkg-plist, remove DOCS
63 lines
2.3 KiB
Bash
63 lines
2.3 KiB
Bash
#!/bin/sh
|
|
|
|
# /usr/local/share/doc/xdialog/samples/radiolist
|
|
|
|
DIALOG=Xdialog
|
|
|
|
size="0x0"
|
|
|
|
$DIALOG --backtitle "This is the \"XBattle\"" \
|
|
--title "RADIOLIST BOX" \
|
|
-geometry X0xY0+X0+Y0 \
|
|
--no-tags \
|
|
--radiolist "Which XBattle configuration wish you to use?" 0 0 0 \
|
|
"Default" "Default" off \
|
|
"Atlas" "Atlas, standard atlas terrain/color scheme" off \
|
|
"Demo" "Demo, demo which includes ALL options" off \
|
|
"Desert" "Desert, mountainous desert terrain/color scheme" off \
|
|
"Io" "Io-like terrain/color scheme" off \
|
|
"Skirmish" "Skirmish, intrigue, espionage, plotting" off \
|
|
"Space" "Space-like terrain/color scheme" off \
|
|
"Tribal" "Tribal, mad scramble, every man for himself" ON \
|
|
"Tropical" "Tropical islands terrain/color scheme" off \
|
|
"Tropical2" "Tropical2 islands terrain/color scheme" off \
|
|
"Tundra" "Tundra-like terrain/color scheme" off \
|
|
2>/tmp/checklist.tmp.$$
|
|
|
|
retval=$?
|
|
choice=`cat /tmp/checklist.tmp.$$`
|
|
rm -f /tmp/checklist.tmp.$$
|
|
|
|
case $retval in
|
|
0)
|
|
echo "'$choice' chosen.";;
|
|
1)
|
|
echo "Cancel pressed.";;
|
|
255)
|
|
echo "Box closed.";;
|
|
esac
|
|
|
|
if [ "$choice" = "Default" ]; then
|
|
xbattle -black me -board 5 -cell 64 -manpos -armies 1
|
|
elif [ "$choice" = "Atlas" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/atlas.xbo
|
|
elif [ "$choice" = "Demo" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/demo.xbo
|
|
elif [ "$choice" = "Desert" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/desert.xbo
|
|
elif [ "$choice" = "Io" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/io.xbo
|
|
elif [ "$choice" = "Skirmish" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/skirmish.xbo
|
|
elif [ "$choice" = "Space" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/space.xbo
|
|
elif [ "$choice" = "Tribal" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/tribal.xbo
|
|
elif [ "$choice" = "Tropical" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/tropical.xbo
|
|
elif [ "$choice" = "Tropical2" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/tropical2.xbo
|
|
elif [ "$choice" = "Tundra" ]; then
|
|
xbattle -black me -white :0 -options %%DATADIR%%/xbos/tundra.xbo
|
|
fi
|
|
|