From 3714b490b10e5f5439bc09e60251339d5477a698 Mon Sep 17 00:00:00 2001 From: Edwin Zaniar Putra Date: Sun, 12 Jan 2020 22:06:41 +0700 Subject: [PATCH] Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP. --- src/display/align/in/QuickSet.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/display/align/in/QuickSet.js b/src/display/align/in/QuickSet.js index cfd31c66b..408539b72 100644 --- a/src/display/align/in/QuickSet.js +++ b/src/display/align/in/QuickSet.js @@ -17,6 +17,10 @@ AlignInMap[ALIGN_CONST.RIGHT_CENTER] = require('./RightCenter'); AlignInMap[ALIGN_CONST.TOP_CENTER] = require('./TopCenter'); AlignInMap[ALIGN_CONST.TOP_LEFT] = require('./TopLeft'); AlignInMap[ALIGN_CONST.TOP_RIGHT] = require('./TopRight'); +AlignInMap[ALIGN_CONST.LEFT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_LEFT]; +AlignInMap[ALIGN_CONST.LEFT_TOP] = AlignInMap[ALIGN_CONST.TOP_LEFT]; +AlignInMap[ALIGN_CONST.RIGHT_BOTTOM] = AlignInMap[ALIGN_CONST.BOTTOM_RIGHT]; +AlignInMap[ALIGN_CONST.RIGHT_TOP] = AlignInMap[ALIGN_CONST.TOP_RIGHT]; /** * Takes given Game Object and aligns it so that it is positioned relative to the other.