mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-05 16:24:39 +00:00
Add missing virtual bind for control::get_tooltip
This commit is contained in:
@@ -2861,6 +2861,10 @@ String Control::get_tooltip_text() const {
|
||||
}
|
||||
|
||||
String Control::get_tooltip(const Point2 &p_pos) const {
|
||||
String ret;
|
||||
if (GDVIRTUAL_CALL(_get_tooltip, p_pos, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return data.tooltip;
|
||||
}
|
||||
|
||||
@@ -3395,6 +3399,7 @@ void Control::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_has_point, "point");
|
||||
GDVIRTUAL_BIND(_structured_text_parser, "args", "text");
|
||||
GDVIRTUAL_BIND(_get_minimum_size);
|
||||
GDVIRTUAL_BIND(_get_tooltip, "at_position");
|
||||
|
||||
GDVIRTUAL_BIND(_get_drag_data, "at_position");
|
||||
GDVIRTUAL_BIND(_can_drop_data, "at_position", "data");
|
||||
|
||||
Reference in New Issue
Block a user