mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Reorder main menu
This commit is contained in:
parent
8f422125ec
commit
6d378da508
2 changed files with 18 additions and 11 deletions
|
@ -5,6 +5,10 @@
|
||||||
- Custom query API
|
- Custom query API
|
||||||
- Standardize dialogs
|
- Standardize dialogs
|
||||||
|
|
||||||
|
## [2.8.0-rc.9] 2022-10-11
|
||||||
|
### Changed
|
||||||
|
- Reordered main menu elements
|
||||||
|
|
||||||
## [2.8.0-rc.8] 2022-10-11
|
## [2.8.0-rc.8] 2022-10-11
|
||||||
### Changed
|
### Changed
|
||||||
- Changed notification title
|
- Changed notification title
|
||||||
|
|
25
dzgui.sh
25
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.8.0-rc.8
|
version=2.8.0-rc.9
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -103,11 +103,12 @@ items=(
|
||||||
" Delete server"
|
" Delete server"
|
||||||
"[Options]"
|
"[Options]"
|
||||||
" List installed mods"
|
" List installed mods"
|
||||||
" Report bug (opens in browser)"
|
|
||||||
" Help file (opens in browser)"
|
|
||||||
" Become a beta tester (opens in browser)"
|
|
||||||
" View changelog"
|
" View changelog"
|
||||||
" Advanced options"
|
" Advanced options"
|
||||||
|
"[Help]"
|
||||||
|
" Help file ⧉"
|
||||||
|
" Report bug ⧉"
|
||||||
|
" Become a beta tester ⧉"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
warn_and_exit(){
|
warn_and_exit(){
|
||||||
|
@ -1337,17 +1338,19 @@ main_menu(){
|
||||||
--title="DZGUI" $sd_res --text="$(mods_disk_size)" \
|
--title="DZGUI" $sd_res --text="$(mods_disk_size)" \
|
||||||
--print-column="" 2>/dev/null
|
--print-column="" 2>/dev/null
|
||||||
elif [[ $sel == "${items[11]}" ]]; then
|
elif [[ $sel == "${items[11]}" ]]; then
|
||||||
report_bug
|
|
||||||
elif [[ $sel == "${items[12]}" ]]; then
|
|
||||||
help_file
|
|
||||||
elif [[ $sel == "${items[13]}" ]]; then
|
|
||||||
forum
|
|
||||||
elif [[ $sel == "${items[14]}" ]]; then
|
|
||||||
changelog | zenity --text-info $sd_res --title="DZGUI" 2>/dev/null
|
changelog | zenity --text-info $sd_res --title="DZGUI" 2>/dev/null
|
||||||
elif [[ $sel == "${items[15]}" ]]; then
|
elif [[ $sel == "${items[12]}" ]]; then
|
||||||
options_menu
|
options_menu
|
||||||
main_menu
|
main_menu
|
||||||
return
|
return
|
||||||
|
elif [[ $sel == "${items[13]}" ]]; then
|
||||||
|
:
|
||||||
|
elif [[ $sel == "${items[14]}" ]]; then
|
||||||
|
help_file
|
||||||
|
elif [[ $sel == "${items[15]}" ]]; then
|
||||||
|
report_bug
|
||||||
|
elif [[ $sel == "${items[16]}" ]]; then
|
||||||
|
forum
|
||||||
else
|
else
|
||||||
warn "This feature is not yet implemented."
|
warn "This feature is not yet implemented."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue