Skip to content

Conversation

@yanshcherbakovatredspace
Copy link
Contributor

If the disablePause parameter is set in the game, the container should not emit the pause event.

this._paused = paused;

if (this.client)
if ((this.client) && (!!this._disablePaused))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if statement needs to be wrapping all the contents of the set function for the disable of pause to work properly... as if it is not it will still change the pause button state and still show the pause overlay


if (this.client)
if (this._disablePause)
{
Copy link
Contributor

@lmckeen lmckeen Aug 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this line of code needs an exclamation mark in the front of it as the disable functionality is working backwards

@lmckeen
Copy link
Contributor

lmckeen commented Aug 30, 2016

👍 Looks good to me

this._isManualPause = false;

/**
* If the current application is paused

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_disablePaused -> _disablePause

@yanshcherbakovatredspace
Copy link
Contributor Author

@andrewstart good catch! thanks!

@andrewstart
Copy link

This looks pretty good. I would suggest documenting the addition of disablePause in FeaturesPlugin though.

@yanshcherbakovatredspace
Copy link
Contributor Author

Added documentation in the FeaturesPlugin for the disablePause being passed as a feature.

@yanshcherbakovatredspace yanshcherbakovatredspace merged commit 77fab60 into master Sep 2, 2016
@yanshcherbakovatredspace yanshcherbakovatredspace deleted the bugfix/blur-and-focus-pausing branch September 2, 2016 14:42
@yanshcherbakovatredspace
Copy link
Contributor Author

Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants