Closed netux closed 4 years ago
''
String("", Null, Null, Null)
' '
String("{0} {1}", String("", Null, Null, Null), String("", Null, Null), Null)
This allows for strings like:
I tested this with the following code:
const ss = [ `Hello`, `Hello `, ` Hello`, ` Hello `, `Hello {}`(0), `Hello / {} - Goodbye`(0), ``, ` `, ` `, ` `, ` {} `(0), `Hello:Goodbye`, `Hello::Goodbye`, `Hello:::Goodbye`, `Hello / `, `# `, `Round `, `-> `, `¡ !` ] Rule "Empty strings" Event Ongoing - Global Actions for s in ss: Create HUD Text(Everyone, s, null, null, Left, 1, White, White, White, Visible To And String)
which in game looked like this:
If anyone finds a strings that don't parse correctly, let me know.
''
transpiles toString("", Null, Null, Null)
' '
transpiles toString("{0} {1}", String("", Null, Null, Null), String("", Null, Null), Null)
This allows for strings like:
I tested this with the following code:
which in game looked like this:![image](https://user-images.githubusercontent.com/6181929/63214267-82283a00-c0ec-11e9-8877-118582a5b1fe.png)
If anyone finds a strings that don't parse correctly, let me know.