aroberge / reeborg

Enhanced Karel-the-robot clone
http://reeborg.ca/reeborg.html
Other
47 stars 36 forks source link

Create new dialogs for each type of output #235

Closed aroberge closed 8 years ago

aroberge commented 8 years ago

Currently all output (from print, print_html, watch, view_source_js) is sent to a single output dialog (formally Reeborg's Diary). Changes done in one type can create problems for others. It would be better to refactor the code and have different types of output sent to different dialog (floating window). While having too many floating windows could, in theory, be a problem, in practice it is unlikely to be overwhelming.

1.Reeborg writes (blue gradient top bar), showing the output from print

  1. Reeborg says (green gradient top bar): for positive end of program
  2. Reeborg shouts (flat red top bar): any error condition, or goal not met
  3. Reeborg watches (color?): for watching variables
  4. Reeborg explores (color?): for view_source_js ... which is inexplicably not working anymore
  5. Reeborg announces (color?): for print_html()