From 3f4ec9b18319091e6142022ec6550a1c82ab3ec8 Mon Sep 17 00:00:00 2001 From: Locutus73 Date: Fri, 31 May 2019 07:23:25 +0200 Subject: [PATCH] Version 1.1.8 - Added DIALOG_HEIGHT parameter Added DIALOG_HEIGHT parameter. --- ini_settings.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ini_settings.sh b/ini_settings.sh index 2ff0e2d..d925de8 100644 --- a/ini_settings.sh +++ b/ini_settings.sh @@ -18,6 +18,7 @@ # You can download the latest version of this script from: # https://github.com/MiSTer-devel/Scripts_MiSTer +# Version 1.1.8 - 2019-05-31 - Added DIALOG_HEIGHT parameter. # Version 1.1.7 - 2019-05-30 - The menu box uses all available space now. # Version 1.1.6 - 2019-05-29 - Speed optimizations. # Version 1.1.5 - 2019-05-29 - Added "Please wait..." screens; font value now is stored as font=/font/myfont.pf without the leading /media/fat. @@ -48,6 +49,8 @@ MISTER_INI_FILE="/media/fat/MiSTer.ini" ALLOW_INSECURE_SSL="true" +DIALOG_HEIGHT="31" + FONTS_DIRECTORY="/media/fat/font" FONTS_EXTENSION="pf" @@ -521,7 +524,7 @@ function showMainMENU_GUI { ${SAVE_BUTTON} \ --help-button --help-label \"Advanced...\" \ --title \"MiSTer INI Settings\" \ - --menu \"Please choose an option you want to change.$'\n'Use arrow keys, tab, space, enter and esc.\" 0 0 999 \ + --menu \"Please choose an option you want to change.$'\n'Use arrow keys, tab, space, enter and esc.\" ${DIALOG_HEIGHT} 0 999 \ ${MENU_ITEMS} \ 2> ${DIALOG_TEMPFILE} readDIALOGtempfile @@ -533,7 +536,7 @@ function showMainMENU_EDITOR { setupDIALOGtempfile eval ${DIALOG} --clear --defaultno \ --title \"MiSTer INI Settings\" \ - --editbox "${EDITOR_TEMPFILE}" 0 0 \ + --editbox "${EDITOR_TEMPFILE}" ${DIALOG_HEIGHT} 0 \ 2> ${DIALOG_TEMPFILE} readDIALOGtempfile rm -f "${EDITOR_TEMPFILE}" @@ -581,7 +584,7 @@ function showOptionMENU { eval ${DIALOG} --clear --colors --item-help --ok-label \"Select\" \ --title \"MiSTer INI Settings: ${INI_KEY}\" \ ${ADDITIONAL_OPTIONS} \ - --menu \"${INI_KEY_HELP}\" 0 0 999 \ + --menu \"${INI_KEY_HELP}\" ${DIALOG_HEIGHT} 0 999 \ ${MENU_ITEMS} \ 2> ${DIALOG_TEMPFILE} readDIALOGtempfile