Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP.

This commit is contained in:
Edwin Zaniar Putra 2020-01-12 22:06:41 +07:00
parent 439d50ee9f
commit 3714b490b1

View file

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