diff --git a/scene/gui/link_button.cpp b/scene/gui/link_button.cpp index 534d2ba573b..a774d80c7fe 100644 --- a/scene/gui/link_button.cpp +++ b/scene/gui/link_button.cpp @@ -199,6 +199,10 @@ Size2 LinkButton::get_minimum_size() const { return minsize; } +Control::CursorShape LinkButton::get_cursor_shape(const Point2 &p_pos) const { + return is_disabled() ? CURSOR_ARROW : get_default_cursor_shape(); +} + void LinkButton::_notification(int p_what) { switch (p_what) { case NOTIFICATION_ACCESSIBILITY_UPDATE: { diff --git a/scene/gui/link_button.h b/scene/gui/link_button.h index 12ea8fe25fc..3591a6af1db 100644 --- a/scene/gui/link_button.h +++ b/scene/gui/link_button.h @@ -114,6 +114,8 @@ public: Ref get_button_font() const; int get_button_font_size() const; + virtual CursorShape get_cursor_shape(const Point2 &p_pos) const override; + LinkButton(const String &p_text = String()); };