Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //44 - width. Use constant instead of get width method because of get width return incorect value (element had higlight layer under mask)
- if (_rewardBtn) {
- _rewardBtn.x = stage.stageWidth / 2 - 44 / 2;
- _rewardBtn.y = stage.stageHeight - 150;
- }
- if (_violationsButton) {
- _violationsButton.x = (_rewardBtn && this.contains(_rewardBtn)) ? _rewardBtn.x + 44 + 5 : stage.stageWidth / 2 - 44 / 2;
- _violationsButton.y = stage.stageHeight - 150;
- }
- if (_levelRewardBtn) {
- _levelRewardBtn.x = ((_rewardBtn && this.contains(_rewardBtn)) || (_violationsButton && this.contains(_violationsButton))) ? _rewardBtn.x - 44 - 5 : stage.stageWidth / 2 - 44 / 2;
- _levelRewardBtn.y = stage.stageHeight - 150;
- }
Add Comment
Please, Sign In to add comment