Added an option to open worlds directly

This commit is contained in:
Nicole George 2020-07-02 19:37:54 -05:00 committed by GitHub
parent 5b9345dca2
commit 817202a49d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,8 @@ main() {
--list \ --list \
--title="$TITLE" \ --title="$TITLE" \
--window-icon="$WORLDSDIR/icon.png" \ --window-icon="$WORLDSDIR/icon.png" \
--width=320 \ --width=300 \
--height=280 \ --height=300 \
--cancel-label='Quit' \ --cancel-label='Quit' \
--radiolist \ --radiolist \
--text 'WorldsPlayer Linux' \ --text 'WorldsPlayer Linux' \
@ -27,6 +27,7 @@ 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 'Open Worlds folder' \ FALSE 'Open Worlds folder' \
FALSE 'Settings' \ FALSE 'Settings' \
@ -36,6 +37,13 @@ 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" ;;
'Open Worlds folder') 'Open Worlds folder')