Files
Todor Imreorov 394eb9488c Fix various DialogueTree ("Yarn") bugs (#1671)
* Fix command at the start of a node merges its text with the node that linked to it
* Fix Yarn skipping text results when commands are used in some cases
* Fix setting/getting variables
* Fix text failing to load when first node is of type text
* Add internal debug mode logging to Yarn
* Fix isdialoguelinetype command never true
* Fix new lines in text not properly detected
* Increase strictness on scrolling so it never overflows
* Fix command call detection for non scrolling text
* Fix: add back autoscroll commands, but make it safer and move it to the scroll function
* Use explicit variable types when setting bondagejs state
* Fix command not getting called sometimes 
* Fix text not terminating sometimes
2020-05-08 12:14:14 +02:00

82 lines
1.6 KiB
JSON

[
{
"title": "Numeric",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = -123.4>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},{
"title": "NumericExpression",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = (1 + 2) * -3 + 4.3>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "String",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = \"Variable String\">>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "StringExpression",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = \"Variable String\" + \" Appended\">>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "Boolean",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = true>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "BooleanExpression",
"tags": "Tag",
"body": "Test Line\n<<set $testvar = (true || false) && (false || !false)>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "Variable",
"tags": "Tag",
"body": "Test Line\n<<set $firstvar = \"First variable string\">><<set $secondvar = $firstvar>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
},
{
"title": "VariableExpression",
"tags": "Tag",
"body": "Test Line\n<<set $firstvar = 100>><<set $secondvar = -4.3 + $firstvar>>\nTest Line After",
"position": {
"x": 449,
"y": 252
},
"colorID": 0
}
]