Guest User

Untitled

a guest
Dec 12th, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             //44 - width. Use constant instead of get width method because of get width return incorect value (element had higlight layer under mask)
  2.             if (_rewardBtn) {
  3.                 _rewardBtn.x = stage.stageWidth / 2 - 44 / 2;
  4.                 _rewardBtn.y = stage.stageHeight - 150;
  5.             }
  6.                        
  7.             if (_violationsButton) {
  8.                 _violationsButton.x = (_rewardBtn && this.contains(_rewardBtn)) ? _rewardBtn.x + 44 + 5 : stage.stageWidth / 2 - 44 / 2;
  9.                 _violationsButton.y = stage.stageHeight - 150;
  10.             }
  11.            
  12.             if (_levelRewardBtn) {
  13.                 _levelRewardBtn.x = ((_rewardBtn && this.contains(_rewardBtn)) || (_violationsButton && this.contains(_violationsButton))) ? _rewardBtn.x - 44 - 5 : stage.stageWidth / 2 - 44 / 2;
  14.                 _levelRewardBtn.y = stage.stageHeight - 150;
  15.             }
Add Comment
Please, Sign In to add comment