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

Add tooltips to FlxG.debugger #2006

Merged
merged 13 commits into from
Dec 4, 2016
Merged

Conversation

Dovyski
Copy link
Contributor

@Dovyski Dovyski commented Nov 27, 2016

debugger-overlay

This PR allows the use of tooltips in the debugger. Any Sprite element child of FlxG.debugger can receive a tooltip using the call Tooltip.add(element, text). I decided for a static method in the Tooltip class instead of something like FlxG.debugger.tooltip.add() to keep the API internal and hidden from HaxeFlixel users.

I also added tooltips to the tools in FlxG.debugger.interaction.

*/
public function destroy():Void
{
if (_shadow != null)
Copy link
Member

Choose a reason for hiding this comment

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

you could use _shadow = FlxDestroyUtil.removeChild(this, _shadow);

and for _background and _text also

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the tip! It looks like @Gama11 was faster than me to fix it :)

@Gama11 Gama11 merged commit 428c8bf into HaxeFlixel:dev Dec 4, 2016
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