misc: add usePercents to client options
This commit is contained in:
parent
f6aaa2c633
commit
98aad56781
3 changed files with 6 additions and 1 deletions
|
|
@ -13,6 +13,9 @@
|
|||
- scripting
|
||||
- add `setFocus` function to focus an input widget programmatically
|
||||
|
||||
- misc
|
||||
- add `usePercents` client option
|
||||
|
||||
# 1.8.9
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ class Editor {
|
|||
this.idClipboard = data.idClipboard
|
||||
})
|
||||
|
||||
this.usePercents = false
|
||||
this.usePercents = !!ENV.usePercents
|
||||
|
||||
this.enabled = false
|
||||
this.grid = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue