1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-04 17:04:49 +00:00

Show the arrow cursor on disabled LinkButtons

This commit is contained in:
Michael Alexsander
2025-10-22 12:01:00 -03:00
parent 9cd297b6f2
commit 66d5a66a14
2 changed files with 6 additions and 0 deletions

View File

@@ -151,6 +151,10 @@ Size2 LinkButton::get_minimum_size() const {
return text_buf->get_size();
}
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: {