diff --git a/game-menu.sh b/game-menu.sh new file mode 100755 index 0000000..d3e788f --- /dev/null +++ b/game-menu.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +export DIALOGOPTS='--no-lines --visit-items' +cols=$(tput cols) +lines=$(tput lines) +path="$(realpath "$0")" +path="${path%/*}" +declare -A gameList +for i in $path/*/ ; do +i="${i::-1}" +gameList[${i##*/}]="$i" +done +gameList[exit]="Exit" +while : ; do +game="$(dialog --backtitle "Storm Games" \ +--menu "Select A Game" $((lines - 5)) $cols $((lines / 2)) $( +for i in ${!gameList[@]} ; do +echo "$i" +echo '|' +done) --stdout)" +if [[ "$game" != "exit" && -n "$game" ]]; then +eval "${gameList[$game]}" +else +break +fi +done +exit 0 diff --git a/soxsynth.tar.gz b/soxsynth.tar.gz deleted file mode 100644 index 19337a0..0000000 Binary files a/soxsynth.tar.gz and /dev/null differ diff --git a/yahtzee.tar.gz b/yahtzee.tar.gz deleted file mode 100644 index 28ee82a..0000000 Binary files a/yahtzee.tar.gz and /dev/null differ