mirror of
https://github.com/aclist/dztui.git
synced 2025-04-16 00:53:01 +02:00
Add titles to other menus
This commit is contained in:
parent
fd7c306c86
commit
74da4a1ad1
1 changed files with 2 additions and 3 deletions
5
dzgui.sh
5
dzgui.sh
|
@ -197,7 +197,7 @@ main_menu(){
|
||||||
query_api
|
query_api
|
||||||
parse_json <<< "$response"
|
parse_json <<< "$response"
|
||||||
msg="Retrieving server list. This may take some time.\nThis window will close automatically if left open."
|
msg="Retrieving server list. This may take some time.\nThis window will close automatically if left open."
|
||||||
create_array | zenity --progress --auto-close
|
create_array | zenity --progress --title="DZGUI" --auto-close
|
||||||
populate
|
populate
|
||||||
return
|
return
|
||||||
elif [[ $sel == "Open mod page (TEST)" ]]; then
|
elif [[ $sel == "Open mod page (TEST)" ]]; then
|
||||||
|
@ -226,7 +226,7 @@ populate(){
|
||||||
while true; do
|
while true; do
|
||||||
#TODO: add boolean statement for ping flag; affects all column ordinal output
|
#TODO: add boolean statement for ping flag; affects all column ordinal output
|
||||||
cols="--column="Server" --column="IP" --column="Players" --column="Status" --column="ID" --column="Ping""
|
cols="--column="Server" --column="IP" --column="Players" --column="Status" --column="ID" --column="Ping""
|
||||||
sel=$(cat $tmp | zenity $sd_res --list $cols --separator="$separator" --print-column=2,5 2>/dev/null)
|
sel=$(cat $tmp | zenity $sd_res --list $cols --title="DZGUI" --text="DZGUI $version | Mode: $mode | Fav: (not implemented)" --separator="$separator" --print-column=2,5 2>/dev/null)
|
||||||
if [[ $? -eq 1 ]]; then
|
if [[ $? -eq 1 ]]; then
|
||||||
echo "should return to main menu"
|
echo "should return to main menu"
|
||||||
#TODO: drop back to main menu
|
#TODO: drop back to main menu
|
||||||
|
@ -266,7 +266,6 @@ create_array(){
|
||||||
let lc++
|
let lc++
|
||||||
done <<< "$list"
|
done <<< "$list"
|
||||||
|
|
||||||
echo "# Server list ready"
|
|
||||||
for i in "${rows[@]}"; do echo -e "$i"; done > $tmp
|
for i in "${rows[@]}"; do echo -e "$i"; done > $tmp
|
||||||
}
|
}
|
||||||
main(){
|
main(){
|
||||||
|
|
Loading…
Reference in a new issue