scripting: onCreate: expose value and call onCreate after default value is applied
This commit is contained in:
parent
6ef1d412f9
commit
5230eb2d4b
6 changed files with 14 additions and 4 deletions
|
|
@ -167,6 +167,8 @@ class CodeEditor {
|
|||
let globals = {}
|
||||
if (this.name === 'onKeyboard') {
|
||||
globals = {type: true, key: true, code: true, ctrl: true, shift: true, alt: true, meta: true}
|
||||
} else if (this.name === 'onCreate') {
|
||||
globals = {value: true}
|
||||
} else if (this.name === 'onValue') {
|
||||
globals = {id: true, value: true, touch: true}
|
||||
} else if (this.name === 'onDraw') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue