proper JS
This commit is contained in:
@@ -2234,10 +2234,10 @@
|
|||||||
"variables": [],
|
"variables": [],
|
||||||
"behaviors": [
|
"behaviors": [
|
||||||
{
|
{
|
||||||
"canBeGrabbed": true,
|
|
||||||
"name": "Platform",
|
"name": "Platform",
|
||||||
"platformType": "NormalPlatform",
|
|
||||||
"type": "PlatformBehavior::PlatformBehavior",
|
"type": "PlatformBehavior::PlatformBehavior",
|
||||||
|
"canBeGrabbed": true,
|
||||||
|
"platformType": "NormalPlatform",
|
||||||
"yGrabOffset": 0
|
"yGrabOffset": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3569,7 +3569,7 @@
|
|||||||
"colorR": 74,
|
"colorR": 74,
|
||||||
"creationTime": 0,
|
"creationTime": 0,
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"folded": true,
|
"folded": false,
|
||||||
"name": "ОТЛАДКА",
|
"name": "ОТЛАДКА",
|
||||||
"source": "",
|
"source": "",
|
||||||
"type": "BuiltinCommonInstructions::Group",
|
"type": "BuiltinCommonInstructions::Group",
|
||||||
@@ -3578,7 +3578,7 @@
|
|||||||
"disabled": false,
|
"disabled": false,
|
||||||
"folded": false,
|
"folded": false,
|
||||||
"type": "BuiltinCommonInstructions::JsCode",
|
"type": "BuiltinCommonInstructions::JsCode",
|
||||||
"inlineCode": "var OT = runtimeScene.getVariables()._variables.items[\"OT\"];\nif (!(OT._children[\"0\"]._str === OT._children[\"1\"]._str))\n{\n OT._children[\"0\"]._str = OT._children[\"1\"]._str;\n console.debug(\"OT:\", OT._children[\"1\"]._str);\n}",
|
"inlineCode": "var OT = runtimeScene.getVariables().get(\"OT\");\nvar OT0 = OT.getChild(\"0\");\nvar OT1 = OT.getChild(\"1\");\nif (OT0.getAsString() != OT1.getAsString())\n{\n OT0.setString(OT1.getAsString());\n console.debug(\"OT:\", OT0.getAsString());\n}",
|
||||||
"parameterObjects": "",
|
"parameterObjects": "",
|
||||||
"useStrict": true,
|
"useStrict": true,
|
||||||
"eventsSheetExpanded": false
|
"eventsSheetExpanded": false
|
||||||
|
|||||||
@@ -2234,10 +2234,10 @@
|
|||||||
"variables": [],
|
"variables": [],
|
||||||
"behaviors": [
|
"behaviors": [
|
||||||
{
|
{
|
||||||
"canBeGrabbed": true,
|
|
||||||
"name": "Platform",
|
"name": "Platform",
|
||||||
"platformType": "NormalPlatform",
|
|
||||||
"type": "PlatformBehavior::PlatformBehavior",
|
"type": "PlatformBehavior::PlatformBehavior",
|
||||||
|
"canBeGrabbed": true,
|
||||||
|
"platformType": "NormalPlatform",
|
||||||
"yGrabOffset": 0
|
"yGrabOffset": 0
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -3569,7 +3569,7 @@
|
|||||||
"colorR": 74,
|
"colorR": 74,
|
||||||
"creationTime": 0,
|
"creationTime": 0,
|
||||||
"disabled": false,
|
"disabled": false,
|
||||||
"folded": true,
|
"folded": false,
|
||||||
"name": "ОТЛАДКА",
|
"name": "ОТЛАДКА",
|
||||||
"source": "",
|
"source": "",
|
||||||
"type": "BuiltinCommonInstructions::Group",
|
"type": "BuiltinCommonInstructions::Group",
|
||||||
@@ -3578,7 +3578,16 @@
|
|||||||
"disabled": false,
|
"disabled": false,
|
||||||
"folded": false,
|
"folded": false,
|
||||||
"type": "BuiltinCommonInstructions::JsCode",
|
"type": "BuiltinCommonInstructions::JsCode",
|
||||||
"inlineCode": "var OT = runtimeScene.getVariables()._variables.items[\"OT\"];\nif (!(OT._children[\"0\"]._str === OT._children[\"1\"]._str))\n{\n OT._children[\"0\"]._str = OT._children[\"1\"]._str;\n console.debug(\"OT:\", OT._children[\"1\"]._str);\n}",
|
"inlineCode": "/*\nvar OT = runtimeScene.getVariables()._variables.items[\"OT\"];\nif (!(OT._children[\"0\"]._str === OT._children[\"1\"]._str))\n{\n OT._children[\"0\"]._str = OT._children[\"1\"]._str;\n console.debug(\"OT:\", OT._children[\"1\"]._str);\n}\n*/",
|
||||||
|
"parameterObjects": "",
|
||||||
|
"useStrict": true,
|
||||||
|
"eventsSheetExpanded": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"disabled": false,
|
||||||
|
"folded": false,
|
||||||
|
"type": "BuiltinCommonInstructions::JsCode",
|
||||||
|
"inlineCode": "var OT = runtimeScene.getVariables().get(\"OT\");\nvar OT0 = OT.getChild(\"0\");\nvar OT1 = OT.getChild(\"1\");\nif (OT0.getAsString() != OT1.getAsString())\n{\n OT0.setString(OT1.getAsString());\n console.debug(\"OT:\", OT0.getAsString());\n}\n",
|
||||||
"parameterObjects": "",
|
"parameterObjects": "",
|
||||||
"useStrict": true,
|
"useStrict": true,
|
||||||
"eventsSheetExpanded": false
|
"eventsSheetExpanded": false
|
||||||
|
|||||||
Reference in New Issue
Block a user