#!/bin/bash
case `kdialog --radiolist "JFDuke3D flerspillermodus" "host" "Vert" 0 "join" "Gjest" 0` in
host)
players=`kdialog --inputbox "Antall spillere" 2`
if test -z $players; then exit; fi
jfduke3d /net /n0 $players
;;
join)
hostip=`kdialog --inputbox "Vertens IP-adresse" "0.0.0.0"`
if test -z $hostip; then exit; fi
jfduke3d /net /n0 $hostip
;;
esac
