1 ########################################################################
 
   3 ########################################################################
 
   9 proc Question {id color title msg {props {}}} {
 
  11   set Questions($id) [list $color $title $msg $props]
 
  14 Question QuitSingle #ff0000 "Quit Micropolis" \
 
  15     "Do you want to quit playing Micropolis?" \
 
  16 {{left {{Keep Playing.} Quit.KeepPlaying
 
  18  {right {{I Quit!} Quit.IQuit
 
  21 Question QuitMulti #ff0000 "Quit Micropolis" \
 
  22     "Do you want to quit playing Micropolis?" \
 
  23 {{left {{Keep Playing.} Quit.KeepPlaying 
 
  25  {middle {{I Resign!} Quit.IResign
 
  27  {right {{I Quit!} Quit.AllQuit 
 
  30 Question Choose #ff0000 "New City" \
 
  31 "Do you want to abandon this city and select another one?" \
 
  32 {{left {{Keep Playing.} SelectCity.No
 
  34  {right {{Yes, another city!} SelectCity.Yes
 
  35    {UIPickScenarioMode}}}}
 
  38 Question Build #00ff00 "%s" "%s" \
 
  39 {{left {{Dismiss Plan.} Plan.Dismiss
 
  41  {right {{Support plan!} Plan.Support 
 
  42    {SupportPlan $view %s $tool $x $y}
 
  43    {PreviewSupportPlan $view %s $tool $x $y}}}}