#include "heads_up_display.h" HeadsUpDisplay *HeadsUpDisplay::singleton_instance{ nullptr }; void HeadsUpDisplay::_bind_methods() { ClassDB::bind_static_method("HeadsUpDisplay", D_METHOD("get_singleton"), &self_type::get_singleton); } void HeadsUpDisplay::on_child_entered(Node *child) { child->connect("child_entered_tree", callable_mp(this, &self_type::on_child_entered)); if (child->is_unique_name_in_owner() && child->get_name() == "Tooltip") { this->tooltip = cast_to