Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FlxSubState: add openCallback #2023

Merged
merged 3 commits into from
Jan 11, 2017

Conversation

alihassan0
Copy link
Contributor

@alihassan0 alihassan0 commented Jan 6, 2017

useful for cases when you want to update certain data when the substates is resumed.

@@ -119,6 +119,7 @@ class FlxState extends FlxGroup
subState._created = true;
subState.create();
}
subState.openCallback();
Copy link
Member

Choose a reason for hiding this comment

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

Needs a null check in case it's not defined

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's right .. I will add it now

@Gama11 Gama11 changed the title Add openCallback to substates FlxSubState: add openCallback Jan 11, 2017
@Gama11 Gama11 merged commit 18132ec into HaxeFlixel:dev Jan 11, 2017
Aurel300 pushed a commit to larsiusprime/haxeflixel that referenced this pull request Apr 18, 2018
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.

3 participants