Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 274139 Details for
Bug 364479
games-strategy/spacezero: new package
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
A little startup script asking some game options.
spacezero.sh (text/plain), 2.25 KB, created by
niogic
on 2011-05-20 17:58:21 UTC
(
hide
)
Description:
A little startup script asking some game options.
Filename:
MIME Type:
Creator:
niogic
Created:
2011-05-20 17:58:21 UTC
Size:
2.25 KB
patch
obsolete
>#!/bin/bash > >geom_val=$(zenity --entry --text "Geometry (WIDTHxHEIGHT)" --entry-text "") >name_val=$(zenity --entry --text "Player name" --entry-text "") >zenity --question --title "Enable sound?" --text "Enable sound?" || sound="-nosound " >if [[ -z $sound ]]; then > zenity --question --title "Enable music?" --text "Enable music?" || music="-nomusic " >fi > >mode=$( >zenity --list --text "Game mode" --radiolist \ > --column "Pick" --column "Mode" \ > TRUE "Default (human vs computer)" \ > FALSE "Server (human vs human [+ computer])" \ > FALSE "Client (human vs human [+ computer])" >) >if [[ $mode == "Default (human vs computer)" ]]; then > mode="" >elif [[ $mode == "Server (human vs human [+ computer])" ]]; then > mode="-s " >elif [[ $mode == "Client (human vs human [+ computer])" ]]; then > mode="-c " >fi > >if [[ $mode == "-s" || $mode == "-c" ]]; then > ip_val=$(zenity --entry --text "Server IP (listening)" --entry-text "") > port_val=$(zenity --entry --text "Port" --entry-text "") >fi > >if [[ $mode != "-c" ]]; then > n_val=$(zenity --scale --text "How many planets?" --min-value=2 --max-value=200 --value=30 --step 2) > p_val=$(zenity --scale --text "How many players?" --min-value=2 --max-value=8 --value=2 --step 2) > g_val=$(zenity --scale --text "How many galaxies?" --min-value=1 --max-value=10 --value=1 --step 2) > l_val=$(zenity --scale --text "Universe size?" --min-value=10000 --max-value=1000000 --value=100000 --step 2) > misc=$( > zenity --list --text "Other options" --checklist \ > --column "Pick" --column "Options" \ > FALSE "k" \ > FALSE "cooperative" \ > FALSE "compcooperative" \ > FALSE "queen" \ > FALSE "nopirates" \ > --separator=" " > ) > if [[ ! -z $misc ]]; then > misc="-${misc/ / -}" > fi >fi > >if [[ ! -z $geom_val ]]; then > geom="-geom $geom_val " >fi >if [[ ! -z $name_val ]]; then > name="-name $name_val " >fi >if [[ ! -z $ip_val ]]; then > ip="-ip $ip_val " >fi >if [[ ! -z $port_val ]]; then > port="-port $port_val " >fi >if [[ ! -z $n_val ]]; then > n="-n $n_val " >fi >if [[ ! -z $p_val ]]; then > p="-p $p_val " >fi >if [[ ! -z $g_val ]]; then > g="-g $g_val " >fi >if [[ ! -z $l_val ]]; then > l="-l $l_val " >fi > >echo "executing: spacezero ${geom}${sound}${music}${name}${mode}${ip}${port}${n}${p}${g}${l}${misc}" >spacezero ${geom}${sound}${music}${name}${mode}${ip}${port}${n}${p}${g}${l}${misc} > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 364479
:
270987
|
270989
|
273511
|
273513
|
273515
|
274137
|
274139
|
274141
|
274693
|
274695
|
276025
|
291473