From 4e48ea4329a8cdeb6c62db0d7fa1b5aef486ff50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Wed, 23 Aug 2023 21:42:26 +0200 Subject: [PATCH 1/2] Replace the effect actions in the toolbar extension. --- .../3d-tile-based-city-builder.json | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json index 23361c8fe..2cc734437 100644 --- a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json +++ b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json @@ -1362,6 +1362,7 @@ "parameters": [ "", "Button", + "Effect", "" ] } @@ -6011,20 +6012,22 @@ "actions": [ { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"Black\"", - "no" + "" ] }, { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"White\"", "yes" ] @@ -6058,20 +6061,22 @@ "actions": [ { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"Black\"", "yes" ] }, { "type": { - "value": "EnableEffect" + "value": "EffectCapability::EffectBehavior::EnableEffect" }, "parameters": [ "Button", + "Effect", "\"White\"", "no" ] @@ -6085,6 +6090,12 @@ "name": "Button", "supplementaryInformation": "SpriteToggleSwitch::SpriteToggleSwitch", "type": "objectList" + }, + { + "description": "Effect capacity", + "name": "Effect", + "supplementaryInformation": "EffectCapability::EffectBehavior", + "type": "behavior" } ], "objectGroups": [] From 52b5658048cd9d72859bf05a8cb41d72569fa1d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davy=20H=C3=A9lard?= Date: Wed, 23 Aug 2023 21:44:15 +0200 Subject: [PATCH 2/2] Update the extensions. --- .../3d-tile-based-city-builder.json | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json index 2cc734437..81ff707c6 100644 --- a/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json +++ b/examples/3d-tile-based-city-builder/3d-tile-based-city-builder.json @@ -2254,7 +2254,7 @@ "name": "MousePointerLock", "previewIconUrl": "https://resources.gdevelop-app.com/assets/Icons/Line Hero Pack/Master/SVG/Virtual Reality/Virtual Reality_360_rotate_vr_movement.svg", "shortDescription": "This behavior removes the limit on the distance the mouse can move and hides the cursor.", - "version": "0.1.5", + "version": "0.1.4", "description": [ "This behavior removes the limit on the distance the mouse can move and hides the cursor.", "", @@ -2263,7 +2263,7 @@ "", "Game players don't have to worry about leaving the gameplay area or accidentally clicking on another application that moves the mouse focus away from the game.", "", - "Locking the pointer locks `CursorX()` and `CursorY()` expressions.", + "Locking the pointer locks `MouseX()` and `MouseY()` expressions.", "Use `MovementX()` and `MovementY()` instead.", "" ], @@ -2274,6 +2274,7 @@ "tags": [ "mouse", "lock", + "cursor", "pointer" ], "authorIds": [ @@ -2295,7 +2296,7 @@ "gdjs._MousePointerLockExtension = {};", "gdjs._MousePointerLockExtension.movement = { x: 0, y: 0 };", "", - "canvas.addEventListener(\"pointermove\", (e) => {", + "canvas.addEventListener(\"mousemove\", (e) => {", " gdjs._MousePointerLockExtension.movement.x += e.movementX || 0;", " gdjs._MousePointerLockExtension.movement.y += e.movementY || 0;", "}, false);" @@ -2378,7 +2379,7 @@ "type": "BuiltinCommonInstructions::JsCode", "inlineCode": [ "const canvas = runtimeScene.getGame().getRenderer().getCanvas();\r", - "canvas.requestPointerLock();" + "canvas.requestPointerLock({ unadjustedMovement: true });" ], "parameterObjects": "", "useStrict": true, @@ -2447,6 +2448,10 @@ "- Isometric view", "" ], + "origin": { + "identifier": "ThirdPersonCamera", + "name": "gdevelop-extension-store" + }, "tags": [ "3d", "camera"