Flatten commits
This commit is contained in:
commit
d3e719f743
19 changed files with 700 additions and 0 deletions
15
examples/showTextLength.js
Normal file
15
examples/showTextLength.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
|
||||
// Checkout the repo examples to get an idea of other ways you can use scripting
|
||||
// https://github.com/latitudegames/Scripting/blob/master/examples
|
||||
|
||||
|
||||
// OUTPUT MODIFIER
|
||||
const modifier = (text) => {
|
||||
|
||||
state.displayStats = [{key:'Text Length', value: text.length, color: 'red'}]
|
||||
|
||||
return { text }
|
||||
}
|
||||
|
||||
// Don't modify this part
|
||||
modifier(text)
|
Reference in a new issue