You've already forked godot
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:
@@ -151,6 +151,10 @@ Size2 LinkButton::get_minimum_size() const {
|
|||||||
return text_buf->get_size();
|
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) {
|
void LinkButton::_notification(int p_what) {
|
||||||
switch (p_what) {
|
switch (p_what) {
|
||||||
case NOTIFICATION_ACCESSIBILITY_UPDATE: {
|
case NOTIFICATION_ACCESSIBILITY_UPDATE: {
|
||||||
|
|||||||
@@ -105,6 +105,8 @@ public:
|
|||||||
|
|
||||||
Ref<Font> get_button_font() const;
|
Ref<Font> get_button_font() const;
|
||||||
|
|
||||||
|
virtual CursorShape get_cursor_shape(const Point2 &p_pos) const override;
|
||||||
|
|
||||||
LinkButton(const String &p_text = String());
|
LinkButton(const String &p_text = String());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user