Browse Source

proper JS

master
parent
commit
447d93a368
2 changed files with 17 additions and 8 deletions
  1. +4
    -4
      game.json
  2. +13
    -4
      game.json.autosave

+ 4
- 4
game.json View File

@@ -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


+ 13
- 4
game.json.autosave View File

@@ -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


Loading…
Cancel
Save