mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Merge pull request #4952 from zaniar/align-in-quickset-alias
Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP.
This commit is contained in:
commit
86e5f8e4bd
1 changed files with 4 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue