misc: add usePercents to client options

This commit is contained in:
bordun 2021-03-01 11:38:50 +01:00
parent f6aaa2c633
commit 98aad56781
3 changed files with 6 additions and 1 deletions

View file

@ -13,6 +13,9 @@
- scripting
- add `setFocus` function to focus an input widget programmatically
- misc
- add `usePercents` client option
# 1.8.9
- bug fixes

View file

@ -12,6 +12,8 @@ Client options can be set either with the server's `--client-options` option, or
| 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) |
| usePercents | 1 / 0 | 0 | sets the editor's "relative units" option |
Example:

View file

@ -130,7 +130,7 @@ class Editor {
this.idClipboard = data.idClipboard
})
this.usePercents = false
this.usePercents = !!ENV.usePercents
this.enabled = false
this.grid = true