Added Worlds Organizer opening

This commit is contained in:
Nicholas George 2020-09-09 12:33:59 -05:00
parent 8968fdeb9a
commit 7410c907cb

View File

@ -27,8 +27,8 @@ main() {
--column 'Options' \ --column 'Options' \
--hide-header \ --hide-header \
TRUE 'Launch Worlds' \ TRUE 'Launch Worlds' \
FALSE 'Open World' \
FALSE 'Launch Worlds with Logger' \ FALSE 'Launch Worlds with Logger' \
FALSE 'Worlds Organizer' \
FALSE 'Open Worlds folder' \ FALSE 'Open Worlds folder' \
FALSE 'Settings' \ FALSE 'Settings' \
FALSE 'Clear Cache' \ FALSE 'Clear Cache' \
@ -37,15 +37,14 @@ main() {
case $sel in case $sel in
'Launch Worlds') 'Launch Worlds')
launch ;; launch ;;
'Open World')
worldsel=$(zenity --title="$WTITLE - Open World" --width=600 --entry --text="Enter a worlds URL" --entry-text="home:GroundZero/groundzero.world")
if [[ ! $? -eq 1 ]]; then
"$WINE" "$WORLDSINSTALL/bin/gdkup.exe" "$worldsel"
else
main
fi ;;
'Launch Worlds with Logger') 'Launch Worlds with Logger')
launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;; launch && tail -F "$WORLDSINSTALL/Gamma.Log.open" | zenity --text-info --auto-scroll --height=480 --width=768 --title="$TITLE - Log" --window-icon="$WORLDSDIR/icon.png" --text="Gamma.Log.open" ;;
'Worlds Organizer')
java -jar "$WORLDSDIR/WorldsOrganizer.jar"
if [[ $? -eq 1 ]]; then
wget -O"$WORLDSDIR/WorldsOrganizer" "https://wirlaburla.site/projects/WorldsOrganizer/dw/0.9.64/WorldsOrganizer-linux.jar"
fi
main ;;
'Open Worlds folder') 'Open Worlds folder')
gio open "$WORLDSINSTALL" ;; gio open "$WORLDSINSTALL" ;;
'Settings' ) 'Settings' )
@ -68,16 +67,17 @@ main() {
} }
launch () { launch () {
WORLDSNEW="WorldsPlayer.exe" source "$WORLDSDIR/wrldscmd"
WORLDSOLD="run.exe" WORLDSNEW="WorldsPlayer.exe"
WORLDSLEGACY="run.bat" WORLDSOLD="run.exe"
if [ -f "$WORLDSINSTALL/$WORLDSNEW" ]; then WORLDSLEGACY="run.bat"
$WINE "$WORLDSINSTALL/$WORLDSNEW" if [ -f "$WORLDSINSTALL/$WORLDSNEW" ]; then
elif [ -f "$WORLDSINSTALL/$WORLDSOLD" ]; then $WINE "$WORLDSINSTALL/$WORLDSNEW"
$WINE "$WORLDSINSTALL/$WORLDSOLD" elif [ -f "$WORLDSINSTALL/$WORLDSOLD" ]; then
else $WINE "$WORLDSINSTALL/$WORLDSOLD"
$WINE cmd /c "$WORLDSINSTALL/$WORLDSLEGACY" else
fi $WINE cmd /c "$WORLDSINSTALL/$WORLDSLEGACY"
fi
} }
settings () { settings () {