swarm/app
Ondřej Šebek 08045793b1
Split debug options (#2094)
* replace `_uiCheatMode :: Bool` with `_uiDebugOptions :: (Set DebugOption)`
  * replace `uiHideGoals` with `uiIsAutoPlay` and debug option `ShowGoalDialogsInAutoPlay` 
* add command line flag `--debug` and make `--cheat` an alias for `--debug=creative` only 

```
  -x,--cheat               Enable cheat mode. This is an alias for --debug=creative
  -d,--debug OPTS          Use 'all' or a comma separated list of options:
                             * creative           allow toggling creative mode on/off
                             * editor             allow toggling the world editor mode on/off
                             * cesk               allow toggling the CESK debug view on/off
                             * all_robots         list all robots (including system robots) in the robot panel
                             * robot_id           list robot IDs in the robot panel
                             * hidden_goals       show hidden objectives in the goal dialog
                             * autoplay_goals     show goal dialogs when running in autoplay
                             * testing            show Testing folder in scenarios menu
```

It even has shell completions:
```bash
swarm --zsh-completion-script `which swarm` > ~/.oh-my-zsh/completions/_swarm
swarm --debug  # press Tab
# all  all_robots  autoplay_goals  cesk  creative  editor  hidden_goals  robot_id  testing
```

* closes #1324
2024-08-08 19:52:29 +00:00
..
doc remove pandoc dependency from main game (#2084) 2024-07-30 00:57:36 +00:00
game Split debug options (#2094) 2024-08-08 19:52:29 +00:00
scene preview rendered world with inotify (#1756) 2024-01-31 19:23:43 +00:00
tournament Implement GitHub authentication (#1856) 2024-05-22 00:27:21 +00:00