1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

Resize popups

This commit is contained in:
aclist 2022-10-08 14:01:59 +09:00
parent 010ce1440c
commit 6cce33ca1a

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=2.8.0-rc.6 version=2.8.0-rc.7
aid=221100 aid=221100
game="dayz" game="dayz"
@ -101,15 +101,15 @@ items=(
) )
} }
warn_and_exit(){ warn_and_exit(){
zenity --info --title="DZGUI" --text="$1" --icon-name="dialog-warning" 2>/dev/null zenity --info --title="DZGUI" --text="$1" --width=500 --icon-name="dialog-warning" 2>/dev/null
printf "[DZGUI] %s\n" "$check_config_msg" printf "[DZGUI] %s\n" "$check_config_msg"
exit exit
} }
warn(){ warn(){
zenity --info --title="DZGUI" --text="$1" --icon-name="dialog-warning" 2>/dev/null zenity --info --title="DZGUI" --text="$1" --width=500 --icon-name="dialog-warning" 2>/dev/null
} }
info(){ info(){
zenity --info --title="DZGUI" --text="$1" 2>/dev/null zenity --info --title="DZGUI" --text="$1" --width=500 2>/dev/null
} }
set_api_params(){ set_api_params(){
response=$(curl -s "$api" -H "Authorization: Bearer "$api_key"" -G -d "sort=-players" \ response=$(curl -s "$api" -H "Authorization: Bearer "$api_key"" -G -d "sort=-players" \