From ce423c9fec2deb337eb25f4158e105678f9ea3aa Mon Sep 17 00:00:00 2001 From: Gregoire Parant Date: Wed, 17 Feb 2021 19:29:59 +0100 Subject: [PATCH] Remove exit trigger action --- front/src/Phaser/Game/GameScene.ts | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/front/src/Phaser/Game/GameScene.ts b/front/src/Phaser/Game/GameScene.ts index d6dc7dbb..713c458a 100644 --- a/front/src/Phaser/Game/GameScene.ts +++ b/front/src/Phaser/Game/GameScene.ts @@ -647,29 +647,11 @@ export class GameScene extends ResizableScene implements CenterListener { } private triggerOnMapLayerPropertyChange(){ - /* @deprecated this.gameMap.onPropertyChange('exitSceneUrl', (newValue, oldValue) => { if (newValue) this.onMapExit(newValue as string); - });*/ - this.gameMap.onPropertyChange('exitUrl', (newValue, oldValue, allProps) => { + }); + this.gameMap.onPropertyChange('exitUrl', (newValue, oldValue) => { if (newValue) this.onMapExit(newValue as string); - /*if (newValue === undefined) { - layoutManager.removeActionButton('exitUrl', this.userInputManager); - } else { - const exitTriggerValue = allProps.get(TRIGGER_EXIT_PROPERTIES); - if (exitTriggerValue && exitTriggerValue === ON_ACTION_TRIGGER_BUTTON) { - let message = allProps.get(EXIT_MESSAGE_PROPERTIES); - if (message === undefined) { - message = 'Click on SPACE to enter in next map'; - } - layoutManager.addActionButton('exitUrl', message.toString(), () => { - layoutManager.removeActionButton('exitUrl', this.userInputManager); - this.onMapExit(newValue as string); - }, this.userInputManager); - } else { - this.onMapExit(newValue as string); - } - }*/ }); this.gameMap.onPropertyChange('openWebsite', (newValue, oldValue, allProps) => { if (newValue === undefined) {