Skip to content

Commit

Permalink
TooltipManager::reset()
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Jan 11, 2024
1 parent 3602f79 commit 7373bf9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions haxe/ui/tooltips/ToolTipManager.hx
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,14 @@ class ToolTipManager {
_toolTip = new ToolTip();
}

public function reset() {
if (_toolTip != null) {
Screen.instance.removeComponent(_toolTip);
}
_toolTip = null;
_toolTipContents = null;
}

public function showToolTipAt(left:Float, top:Float, options:ToolTipOptions) {
createToolTip();
_toolTip.hide();
Expand Down

0 comments on commit 7373bf9

Please sign in to comment.