Rogue Class Linux Download Login

Artifact Content

Artifact 62a7290512e8b35c04631d92cf4f9b9e5942ac69:


#!/bin/sh
result=$(mktemp)
trap onexit EXIT

onexit()
{
    rm -f $result
}
icondir=/usr/share
iconback=icons/gnome/48x48/actions/back.png
icongo=pixmaps/monkeyjump.png
title="Monkeyjump GNU Go Menu"
dialog                                     \
    --icons $icondir                       \
    --title "$title"                       \
    --menu "$title" 0 0 10                 \
    9     "9x9 board"           $icongo    \
    13    "13x13 board"         $icongo    \
    19    "19x19 board"         $icongo    \
    BACK  "Back to games menu"  $iconback  \
    2>$result
if [ $? -ne 0 ]
then
    exit 0
fi
case $(<$result) in
BACK)
    # go straight back to the game menu instead of the main monkeyjump menu 
    rig ~/settings/history.cfg pop $(tty) >/dev/null
    ;;
9)
    rig ~/settings/history.cfg push $(tty) monkeyjump-run
    ;;
13)
    rig ~/settings/history.cfg push $(tty) "monkeyjump-run 13"
    ;;
19)
    rig ~/settings/history.cfg push $(tty) "monkeyjump-run 19"
    ;;
esac
exit 0