increase client console history size and allow changing it with client url options

This commit is contained in:
bordun 2020-12-10 11:38:17 +01:00
parent 30bd29bc3e
commit 7d715a8be6
3 changed files with 5 additions and 1 deletions

View file

@ -5,10 +5,13 @@
- bug fixes
- canvas-based widgets not drawn when placed in a modal while having a conditional visibility set
- text: missing `decimals` property
- clone: fix usage of osc listener syntax (acts as if clone has an `address` property set to `auto`)
- widgets
- clone: make `props` property dynamic (avoid full widget rebuild when possible)
- misc
- increase client console history size and allow changing it with client url options
## 1.7.7

View file

@ -10,6 +10,7 @@ Client options can be set either with the server's `--client-options` option, or
| framerate | number | 60 | limit canvas drawing framerate |
| desyncCanvas | number | 0 | set to 1 to enable desynchronized canvas (may improve rendering performances) |
| lang | string | *system_default* | use a different language than the default if available (available languages: en, fr) |
| consoleLength | number | 300 | sets the maximum number of log messages in the client's console |
| id | string | *random_id* | client's unique id (use with caution: two clients should never have the same id) |
Example:

View file

@ -27,7 +27,7 @@ class UiConsole extends UiSidePanel {
})
this.length = 0
this.maxLength = 200
this.maxLength = ENV.consoleLength || 300
this.history = ['']
this.cursor = 0