From 7d715a8be66725936433502217c6531ed451921f Mon Sep 17 00:00:00 2001 From: bordun Date: Thu, 10 Dec 2020 11:38:17 +0100 Subject: [PATCH] increase client console history size and allow changing it with client url options --- CHANGELOG.md | 3 +++ resources/docs/docs/client-options.md | 1 + src/client/ui/ui-console.js | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dbff62a2..40d7b3a5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/resources/docs/docs/client-options.md b/resources/docs/docs/client-options.md index 878c1934..89b712d1 100644 --- a/resources/docs/docs/client-options.md +++ b/resources/docs/docs/client-options.md @@ -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: diff --git a/src/client/ui/ui-console.js b/src/client/ui/ui-console.js index ccce4742..719f0b0c 100644 --- a/src/client/ui/ui-console.js +++ b/src/client/ui/ui-console.js @@ -27,7 +27,7 @@ class UiConsole extends UiSidePanel { }) this.length = 0 - this.maxLength = 200 + this.maxLength = ENV.consoleLength || 300 this.history = [''] this.cursor = 0