From 447d93a36879327190ca3c9d6624c41e22e8410d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Thu, 25 Feb 2021 18:52:43 +0300 Subject: [PATCH] proper JS --- game.json | 8 ++++---- game.json.autosave | 17 +++++++++++++---- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/game.json b/game.json index 83fa893..dd64712 100644 --- a/game.json +++ b/game.json @@ -2234,10 +2234,10 @@ "variables": [], "behaviors": [ { - "canBeGrabbed": true, "name": "Platform", - "platformType": "NormalPlatform", "type": "PlatformBehavior::PlatformBehavior", + "canBeGrabbed": true, + "platformType": "NormalPlatform", "yGrabOffset": 0 } ], @@ -3569,7 +3569,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": true, + "folded": false, "name": "ОТЛАДКА", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -3578,7 +3578,7 @@ "disabled": false, "folded": false, "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": "", "useStrict": true, "eventsSheetExpanded": false diff --git a/game.json.autosave b/game.json.autosave index 83fa893..527d090 100644 --- a/game.json.autosave +++ b/game.json.autosave @@ -2234,10 +2234,10 @@ "variables": [], "behaviors": [ { - "canBeGrabbed": true, "name": "Platform", - "platformType": "NormalPlatform", "type": "PlatformBehavior::PlatformBehavior", + "canBeGrabbed": true, + "platformType": "NormalPlatform", "yGrabOffset": 0 } ], @@ -3569,7 +3569,7 @@ "colorR": 74, "creationTime": 0, "disabled": false, - "folded": true, + "folded": false, "name": "ОТЛАДКА", "source": "", "type": "BuiltinCommonInstructions::Group", @@ -3578,7 +3578,16 @@ "disabled": false, "folded": false, "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": "", "useStrict": true, "eventsSheetExpanded": false