Choix du PLAYER
This commit is contained in:
parent
4ea28098f5
commit
6b7f31d795
|
@ -45,7 +45,7 @@ CHOICE="$3"
|
||||||
players=($(ls ~/.zen/game/players | grep -Ev "localhost" 2>/dev/null))
|
players=($(ls ~/.zen/game/players | grep -Ev "localhost" 2>/dev/null))
|
||||||
|
|
||||||
[[ ${#players[@]} -ge 1 ]] \
|
[[ ${#players[@]} -ge 1 ]] \
|
||||||
&& espeak "SELECT YOUR PLAYER" && OUTPUT=$(zenity --entry --width 640 --title="Astroport" --text="ASTRONAUTE" --entry-text="${players[@]}") \
|
&& espeak "SELECT YOUR PLAYER" && OUTPUT=$(zenity --list --width 480 --height 200 --title="Choix du PLAYER" --column="Astronaute" "${players[@]}") \
|
||||||
|| OUTPUT="${players}"
|
|| OUTPUT="${players}"
|
||||||
|
|
||||||
PLAYER=$OUTPUT
|
PLAYER=$OUTPUT
|
||||||
|
|
Loading…
Reference in New Issue